I tried to convert, but found that in network instantiation, the parameter of the network is object instead of object nn.module ,
net = NetworkFactory(flag=True) net.load_state_dict(torch.load(r"E:\cache\nnet\LSTR\LSTR_100.pkl"), False) which results in an error: AttributeError: 'NetworkFactory' object has no attribute 'load_state_dict' . How can I solve this problem
I tried to convert, but found that in network instantiation, the parameter of the network is object instead of object nn.module , net = NetworkFactory(flag=True) net.load_state_dict(torch.load(r"E:\cache\nnet\LSTR\LSTR_100.pkl"), False) which results in an error: AttributeError: 'NetworkFactory' object has no attribute 'load_state_dict' . How can I solve this problem