"Class conv_transpose2d is not found" when exporting a pruning-optimized model
See original GitHub issueI tried pruning optimization (pruning only) for my detection model.
I got following error when calling compression_ctrl.export_model()
File "nncf_pytorch/nncf/compression_method_api.py", line 213, in export_model
self.prepare_for_export()
File "nncf_pytorch/nncf/pruning/filter_pruning/algo.py", line 204, in prepare_for_export
model_pruner.prune_model()
File "nncf_pytorch/nncf/pruning/export_helpers.py", line 392, in prune_model
self.mask_propagation()
File "nncf_pytorch/nncf/pruning/export_helpers.py", line 315, in mask_propagation
cls = self.get_class_by_type_name(node_type)()
File "nncf_pytorch/nncf/pruning/export_helpers.py", line 303, in get_class_by_type_name
raise RuntimeError("Class {} is not found".format(type_name))
RuntimeError: Class conv_transpose2d is not found
Is it a bug or torch.nn.ConvTranspose2d not supported?
Pruning itself seems working judging from the training log of Mask zero %, PR, Filter PR
columns printed by print_statistics function is above 0.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ConvTranspose2d — PyTorch 1.13 documentation
Applies a 2D transposed convolution operator over an input image composed of several input planes. This module can be seen as the gradient...
Read more >upsample_bilinear2d issue when exporting to onnx #22906
I can not export from PyTorch to ONNX using the upsample operator with torch version 1.3.1, onnx version 1.5.0. MINIMUM CODE TO REPRODUCE:....
Read more >What output_padding does in nn.ConvTranspose2d?
Output padding helps pytorch to determine 7x7 or 8x8 output with output_padding parameter. Note that, it doesn't pad zeros or anything to output ......
Read more >The nncf from openvinotoolkit - GithubHelp
I did not find related information/example yet. it seems nncf does not ... "Class conv_transpose2d is not found" when exporting a pruning-optimized model....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mkaglins @vanyalzr
@vshampor @vanyalzr
Yes. I could export onnx without error. thx.
But the final pruning rate was low. my setting:
and the log at 5 epoch is
0.165 is much lower than pruning target 0.4 Is it due to uncompressed ConvTranspose2D layer?
if so, i really want the support of pruning ConvTranspose2D