Skip to content

AttributeError: 'Monitor' object has no attribute 'set_iter' #12

@nhy17-thu

Description

@nhy17-thu

Hi @justanhduc, when I was running test code with your latest version of neuralnet-pytorch, an error occurred as below:

Traceback (most recent call last):
File "test.py", line 68, in
test_each_category()
File "/home/niuhaoyu/anaconda3/envs/graphX-cuda/lib/python3.8/site-packages/gin/config.py", line 1069, in gin_wrapper
utils.augment_exception_message_and_reraise(e, err_str)
File "/home/niuhaoyu/anaconda3/envs/graphX-cuda/lib/python3.8/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
raise proxy.with_traceback(exception.traceback) from None
File "/home/niuhaoyu/anaconda3/envs/graphX-cuda/lib/python3.8/site-packages/gin/config.py", line 1046, in gin_wrapper
return fn(*new_args, **new_kwargs)
File "test.py", line 46, in test_each_category
mon.set_iter(0)
AttributeError: 'Monitor' object has no attribute 'set_iter'
In call to configurable 'GraphX' (<function test_each_category at 0x7f63f181b0d0>)

It seems to be caused by breaking changes in the updated neuralnet-pytorch. Do you know if there are any available fixes to this problem? I could try rolling back the version of neuralnet-pytorch, but I'm afraid that there could be unfixed bugs in the previous versions. Thanks!

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