提交 1c0cf112 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Update comment about scalar.upcast()

上级 5c9ae8ae
......@@ -50,10 +50,8 @@ class IntegerDivisionError(Exception):
def upcast(dtype, *dtypes):
# Should we try to keep float32 instead of float64? This is used so that
# for instance mixing int64 with float32 yields float32 instead of float64.
# Note that we store this boolean as a one-element list so that it can be
# modified within `make_array`.
# This tries to keep data in floatX or lower precision, unless we
# explicitely request a higher precision datatype.
keep_float32 = [(config.cast_policy == 'numpy+floatX' and
config.floatX == 'float32')]
keep_float16 = [(config.cast_policy == 'numpy+floatX' and
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论