提交 2ba26473 authored 作者: Adrian Seyboldt's avatar Adrian Seyboldt 提交者: Ricardo Vieira

enh: Improve static shape of Unbroadcast

上级 74efc965
......@@ -527,7 +527,7 @@ def get_underlying_scalar_constant_value(
grandparent.owner.op, Unbroadcast
):
ggp_shape = grandparent.owner.inputs[0].type.shape
l = [s1 == 1 or s2 == 1 for s1, s2 in zip(ggp_shape, gp_shape)]
l = [get_underlying_scalar_constant_value(s) for s in ggp_shape]
gp_shape = tuple(l)
if not (idx < ndim):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论