评价此页

torch.fx.experimental.symbolic_shapes.constrain_unify#

torch.fx.experimental.symbolic_shapes.constrain_unify(a, b)[source]#

给定两个 SymInts,将它们约束为必须相等。注意:此方法目前无法处理代表非平凡表达式的 SymInts(正在开发中!)。