You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to #6533. Currently the target shape of reshape_op is set by attribute. If it is set by an input variable, then when run InferShape(), we cannot get the right shape for the output tensor because at this moment there is no avaiable value in the input variable. It means that the framework cannot infer the shape of tensors correctly after the reshape operation.
So I doubt if it is reasonable to set target shape via input under current design. Maybe we can turn to figure out another way to solve #6533, such as by dynamic attributes setting.
The text was updated successfully, but these errors were encountered:
After this commit, users can set Shape of the target through both input and attribute. However, the priority of input Shape is higher than attribute shape.
This issue is related to #6533. Currently the target shape of
reshape_op
is set by attribute. If it is set by an input variable, then when runInferShape()
, we cannot get the right shape for the output tensor because at this moment there is no avaiable value in the input variable. It means that the framework cannot infer the shape of tensors correctly after the reshape operation.So I doubt if it is reasonable to set target shape via input under current design. Maybe we can turn to figure out another way to solve #6533, such as by dynamic attributes setting.
The text was updated successfully, but these errors were encountered: