評價此頁

torch.fx.experimental.symbolic_shapes.constrain_unify#

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

給定兩個 SymInts,將它們約束為必須相等。注意:此方法目前無法處理代表非平凡表示式的 SymInts(正在開發中!)。