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

Minor indent fix

上级 2d1d82a6
...@@ -907,7 +907,7 @@ def _as_scalar(res, dtype=None): ...@@ -907,7 +907,7 @@ def _as_scalar(res, dtype=None):
# If dtype is float64, we will cast int64 to float64. # If dtype is float64, we will cast int64 to float64.
# This is valid when res is a scalar used as input to a dot22 # This is valid when res is a scalar used as input to a dot22
# as the cast of the scalar can be done before or after the dot22 # as the cast of the scalar can be done before or after the dot22
# and this will give the same result. # and this will give the same result.
if theano.scalar.upcast(res.dtype, dtype) == dtype: if theano.scalar.upcast(res.dtype, dtype) == dtype:
return T.cast(rval, dtype) return T.cast(rval, dtype)
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论