Closed dvorotnev closed 4 years ago
This is not the right way to solve this, since converting shapes (and subsequent computation on those shapes) to constants is more complicated and only possible if the network actually has static shapes (could be dynamic as well).
However, the converter has the --fold-constants
option, which should do exactly this, did you try that? It will only work if the input nodes of the network has static shapes (no None-s), or you explicitly supply static shapes in place of dynamic ones with the --input-shapes
option. Let me know if that works as expected.
With the --fold-constants
flag the model is converted well. Thank you!
I try to convert the Inception v3 model in NNEF model zoo from TF to NNEF with the following commands:
But after refactoring of NNEF Tools, the model is not converted with a message:
This can be resolved with a following custom-converters script according to the TF documentation:
But I think, that it is better to add a conversion support of the
Shape
operation in thetf_to_nnef
converter.