提交 f646ff7c authored 作者: Sina Honari's avatar Sina Honari

correcting a flake8 format error

上级 26d6d1c2
......@@ -4127,7 +4127,7 @@ class Reshape(Op):
shp_orig = shp
shp = as_tensor_variable(shp, ndim=1)
if not (shp.dtype.startswith('int') or
(isinstance(shp, TensorConstant) and shp.data.size == 0)):
(isinstance(shp, TensorConstant) and shp.data.size == 0)):
# It raises an error if shp is not of integer type,
# except when shp is constant and empty
# (in this case, shp.dtype does not matter anymore).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论