Skip to content

no attribute functional  #15

@finesssss

Description

@finesssss

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions