You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
/opt/conda/envs/pytorch1.9/lib/python3.7/site-packages/deprecate/deprecation.py:115: LightningDeprecationWarning: The Accuracy was deprecated since v1.3.0 in favor of torchmetrics.classification.accuracy.Accuracy. It will be removed in v1.5.0.
stream(template_mgs % msg_args)
Traceback (most recent call last):
File "/opt/conda/envs/pytorch1.9/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/pytorch1.9/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/trial_entry.py", line 25, in
engine.trial_execute_graph()
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/execution/base.py", line 128, in trial_execute_graph
graph_data.evaluator._execute(model_cls)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 100, in _execute
return self.fit(model_cls)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 128, in fit
self.module.set_model(model)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 37, in set_model
self.model = model()
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/examples/nas/oneshot/spos/_generated_model/G7UFOW.py", line 5580, in init
self.__first_conv = _model__first_conv(input_shape=[[1, 3, 32, 32]], output_shape=[[1, 16, 16, 16]])
TypeError: init() got an unexpected keyword argument 'input_shape'
Describe the issue:
Environment: ubutu
Configuration:
Log message:
/opt/conda/envs/pytorch1.9/lib/python3.7/site-packages/deprecate/deprecation.py:115: LightningDeprecationWarning: The
Accuracy
was deprecated since v1.3.0 in favor oftorchmetrics.classification.accuracy.Accuracy
. It will be removed in v1.5.0.stream(template_mgs % msg_args)
Traceback (most recent call last):
File "/opt/conda/envs/pytorch1.9/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/pytorch1.9/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/trial_entry.py", line 25, in
engine.trial_execute_graph()
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/execution/base.py", line 128, in trial_execute_graph
graph_data.evaluator._execute(model_cls)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 100, in _execute
return self.fit(model_cls)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 128, in fit
self.module.set_model(model)
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/nni/retiarii/evaluator/pytorch/lightning.py", line 37, in set_model
self.model = model()
File "/home/notebook/code/personal/gzh/compression_toolkit/nni_v24/nni/examples/nas/oneshot/spos/_generated_model/G7UFOW.py", line 5580, in init
self.__first_conv = _model__first_conv(input_shape=[[1, 3, 32, 32]], output_shape=[[1, 16, 16, 16]])
TypeError: init() got an unexpected keyword argument 'input_shape'
我找到了G7UFOW.py文件,发现_model__first_conv类的构造函数没有入参(如下),确实有bug:
How to reproduce it?: just run
The text was updated successfully, but these errors were encountered: