提交 c96c73f7 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix DeprecationWarning about int division.

上级 dd41f3e9
...@@ -1671,7 +1671,7 @@ class TrueDiv(BinaryScalarOp): ...@@ -1671,7 +1671,7 @@ class TrueDiv(BinaryScalarOp):
# This is different from it not being connected # This is different from it not being connected
# to the output; x/y is still a function of x # to the output; x/y is still a function of x
# and y; it's just a step function. # and y; it's just a step function.
if (x / y).type in discrete_types: if all(a.dtype in discrete_types for a in (x, y)):
return [x.zeros_like(), y.zeros_like()] return [x.zeros_like(), y.zeros_like()]
first_part = gz / y first_part = gz / y
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论