Please initialize `Prune` with a supported layer. Layers should either be a `PrunableLayer` instance
对模型进行剪枝时出现错误:
Please initialize `Prune` with a supported layer. Layers should either be a `PrunableLayer` instance, or should be supported by the PruneRegistry. You passed:
1:找到prune_registry.py文件,如果是anacoda3,文件路径可能在:
1)anaconda3/envs/tensorflow2_latest_p
原创
2021-05-04 23:08:25 ·
1176 阅读 ·
2 评论