google-research / growneuron

Apache License 2.0
51 stars 8 forks source link

Error when using current scipy version (1.8.1) #5

Closed rfrels closed 1 year ago

rfrels commented 2 years ago

Hello authors, I encountered an error when growing with gradmax and using scipy version 1.8.1. I'm pretty sure that just some function got moved. With scipy 1.6.3 and 1.7.3 the error didn't occur, so I would recommend specifying sciypy version 1.7.3 in setupy.py.
The configuration and error are below, for reproduction.

Kind regards.

configuration: python growneuron/cifar/main.py --output_dir=/tmp/cifar \ --config=growneuron/cifar/configs/grow_round_robin.py \ --config.grow_type=add_gradmax\ --config.updater.start_iteration=1000 error: File "growneuron\growneuron\growers.py", line 405, in get_growth_directions AttributeError: module 'scipy.sparse.linalg._eigen.arpack.arpack' has no attribute 'svds'

evcu commented 1 year ago

Thanks! Updated the requirements.

7401194