提交 863dd863 authored 作者: Frederic Bastien's avatar Frederic Bastien
...@@ -590,7 +590,7 @@ class _tensor_py_operators: ...@@ -590,7 +590,7 @@ class _tensor_py_operators:
if L==float('inf'): if L==float('inf'):
raise NotImplementedError() raise NotImplementedError()
#optimizations will/should catch cases like L=1, L=2 #optimizations will/should catch cases like L=1, L=2
return pow(pow(self, L).sum(axis=axis), 1.0/L) return pow(pow(abs_(self), L).sum(axis=axis), 1.0/L)
class TensorResult(Result, _tensor_py_operators): class TensorResult(Result, _tensor_py_operators):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论