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
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Unsetting the tensor shape is in particular useful, when one has changed some up-stream tensor and wants to run shape inference again for the rest of the down-stream tensors. Because as long as the down-stream tensors have wrong or out-dated shapes the shape inference will always fail.
This would require changes to the set_tensor_shape function here:
It is currently not possible to easily remove the shape from a given tensor.
The attached .zip file contains an QONNX model, which has unset tensors:
CNV_2W2A.zip
Running the following:
produces:
When it should produce:
Unsetting the tensor shape is in particular useful, when one has changed some up-stream tensor and wants to run shape inference again for the rest of the down-stream tensors. Because as long as the down-stream tensors have wrong or out-dated shapes the shape inference will always fail.
This would require changes to the
set_tensor_shape
function here:finn-base/src/finn/core/modelwrapper.py
Line 188 in 92f0019
Such that the function will not append a new
tensor_value_info
, when the argumenttensor_shape
isNone
.The text was updated successfully, but these errors were encountered: