-
Notifications
You must be signed in to change notification settings - Fork 802
Modify a bug in ranked_structures_pruner.py while running AMC #429
Comments
Thanks @csc12138, what's the command-line you are executing? |
Thanks @csc12138, I got the same error, and then tried the way @csc12138 mentioned to solve it. Here are other issues and temperay solutions I found when I run the command, hope it is useful for others. One more similar issue is that: name 'ALMOST_ONE' is not defined |
- define ALMOST_ONE - define op_type - remove sanity assert (need to understand what tolerance value to use in the assert)
Thanks @csc12138, @wangyidong3 for opening this issue and suggesting the solution. I've pushed a fix. Let me know if there are further problems with this example. |
- define ALMOST_ONE - define op_type - remove sanity assert (need to understand what tolerance value to use in the assert) Co-authored-by: csc12138 Co-authored-by: wangyidong3
Hi, Closing this issue as it seems resolved. |
- define ALMOST_ONE - define op_type - remove sanity assert (need to understand what tolerance value to use in the assert)
- define ALMOST_ONE - define op_type - remove sanity assert (need to understand what tolerance value to use in the assert) Co-authored-by: csc12138 Co-authored-by: wangyidong3
While running AMC, there is an error:
in the file distiller/distiller/pruning/ranked_structures_pruner.py
op_type is not defined,
After reviewing author's modification history, in the previous version of this file, in this function: "rank_and_prune_channels":
op_type = 'conv' if param.dim() == 4 else 'fc'
However, for the current version, this line of code is removed, so I guess, something like this should be added into the current version in order to fix this bug
The text was updated successfully, but these errors were encountered: