M-ADA icon indicating copy to clipboard operation
M-ADA copied to clipboard

no attribute functional

Open finesssss opened this issue 2 years ago • 1 comments

Hi when I try to runt this code, the following issue has occured. Do you have any idea to solve it? python main_Digits.py --mode test --resume ckpt_mnist.pth.tar => loading checkpoint 'ckpt_mnist.pth.tar' => loaded checkpoint 'ckpt_mnist.pth.tar' (iter 10001) svhn Loading SVHN dataset. Traceback (most recent call last): File "main_Digits.py", line 334, in main() File "main_Digits.py", line 100, in main evaluation(model, args.data_dir, args.batch_size, kwargs) File "/home/comp/20481160/code/M-ADA-master/utils/digits_process_dataset.py", line 184, in evaluation output = model.functional(params, False, input) File "/usr/local/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 779, in getattr type(self).name, name)) torch.nn.modules.module.ModuleAttributeError: 'ConvNet' object has no attribute 'functional'

finesssss avatar May 30 '22 06:05 finesssss

Hi @finesssss,

I think the issue is caused by the version of MetaNN. Please use MetaNN 0.1.5 and try again.

joffery avatar Jun 12 '22 12:06 joffery