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

Added scalar.all_types that contains all datatypes supported by Theano.

Also removed a part of a warning that is not needed anymore, since the line triggering the warning should now be displayed.
上级 fdbf70cf
......@@ -421,6 +421,7 @@ complex_types = complex64, complex128
discrete_types = int_types + uint_types
continuous_types = float_types + complex_types
all_types = discrete_types + continuous_types
class _scalar_py_operators:
......@@ -1101,9 +1102,7 @@ def int_or_true_div(x_discrete, y_discrete):
elif config.int_division == 'int':
warnings.warn(
"Division of two integer types with x / y is deprecated, "
"please use x // y for an integer division "
"(set `config.int_division = raise` to track the origin "
"of this warning)",
"please use x // y for an integer division.",
DeprecationWarning,
stacklevel=4)
return 'int'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论