Closed twmht closed 2 years ago
Have you modified the code of amc_search.py? In the same setting, I have no bug here.
@linbinskn
No modification except I used my own dataset.
@linbinskn
The error is from stats.truncnorm.rvs
, which version of scipy you used?
I have tried 1.4.1, everything seems fine.
@linbinskn
I found out the action produced by the actor may be nan. thus mu would be nan (https://github.com/microsoft/nni/blob/master/nni/algorithms/compression/pytorch/pruning/amc/lib/agent.py#L228)
is it possible that actor may produce nan values (https://github.com/microsoft/nni/blob/master/nni/algorithms/compression/pytorch/pruning/amc/lib/agent.py#L32) ?
Exploding gradients will lead to NaN value.
@linbinskn
I switch to torch1.7.0 from torch.1.8.0 and the error is gone. there might be some problems between torch1.8.0 and nni v2.3.
Hi,
I have segmentation fault error when running amc_search
after debugging with faulthandler. It seems that the error is caused by scipy
my scipy versio is 1.4.1 and nni version is v2.3.
any idea?