提交 a87ac217 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Added a TODO to remember a discussion with Pascal

上级 0ef2abb8
...@@ -2715,6 +2715,8 @@ def mean(input, axis=None, dtype=None, op=False): ...@@ -2715,6 +2715,8 @@ def mean(input, axis=None, dtype=None, op=False):
shp = shape(input) shp = shape(input)
# Cast shp into a float type # Cast shp into a float type
# TODO Once we have a consistent casting policy, we could simply
# use true_div.
if s.dtype in ('float32', 'complex64'): if s.dtype in ('float32', 'complex64'):
shp = cast(shp, 'float32') shp = cast(shp, 'float32')
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论