New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NNConv' object has no attribute '__user_args__' #1
Comments
Hi, thank you for raising this issue, but we cannot reproduce this error. |
packages in environment at /home/.conda/envs/pytorch:Name Version Build Channel_libgcc_mutex 0.1 main |
This problem is due to the incompatible version of the pytorch and torch geometric package. Our pre-trained models were trained with pytorch 1.2.0, and torch geometric 1.3.2. The loading model failed due to the package update. You may rollback the two packages to an older version and try if it works. |
Hi, we just fixed the problem, please pull the code and try again. Hao |
Thanks for your fast action. Now it is solved, so I will close this one. |
Error with pytorch1.5.0, cuda10.2 in Ubuntu20
File "./Tiling-Shape.py", line 86, in
tiling_a_region()
File "./Tiling-Shape.py", line 59, in tiling_a_region
result_brick_layout, score = solver.solve(result_brick_layout)
File "/home/Desktop/clone/TilinGNN/solver/ml_solver/ml_solver.py", line 60, in solve
output_solution, score, predict_order = algorithms.solve_by_probablistic_greedy(self, brick_layout)
File "/home/Desktop/clone/TilinGNN/util/algorithms.py", line 31, in solve_by_probablistic_greedy
prob = ml_solver.predict(temp_layout)
File "/home/Desktop/clone/TilinGNN/solver/ml_solver/ml_solver.py", line 43, in predict
col_e_features=collide_edge_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/Desktop/clone/TilinGNN/graph_networks/networks/TilinGNN.py", line 62, in forward
brch_1_feature, *_ = conv_layer(brch_1_feature, adj_e_index, adj_e_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/Desktop/clone/TilinGNN/graph_networks/layers/edge_conv.py", line 25, in forward
x = self.nnConv(x, edge_index, edge_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/nn_conv.py", line 81, in forward
return self.propagate(edge_index, x=x, pseudo=pseudo)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 250, in propagate
kwargs = self.collect(edge_index, size, mp_type, kwargs)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 124, in collect
for arg in self.user_args:
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 594, in getattr
type(self).name, name))
AttributeError: 'NNConv' object has no attribute 'user_args'
Traceback (most recent call last):
File "./Tiling-GUI.py", line 133, in keyPressEvent
self.current_solution_layout = self.solve_Brick_Layout(self.current_brick_layout)
File "./Tiling-GUI.py", line 489, in solve_Brick_Layout
result_brick_layout, score = self.solver.solve(brick_layout)
File "/home/Desktop/clone/TilinGNN/solver/ml_solver/ml_solver.py", line 60, in solve
output_solution, score, predict_order = algorithms.solve_by_probablistic_greedy(self, brick_layout)
File "/home/Desktop/clone/TilinGNN/util/algorithms.py", line 31, in solve_by_probablistic_greedy
prob = ml_solver.predict(temp_layout)
File "/home/Desktop/clone/TilinGNN/solver/ml_solver/ml_solver.py", line 43, in predict
col_e_features=collide_edge_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/Desktop/clone/TilinGNN/graph_networks/networks/TilinGNN.py", line 62, in forward
brch_1_feature, *_ = conv_layer(brch_1_feature, adj_e_index, adj_e_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/Desktop/clone/TilinGNN/graph_networks/layers/edge_conv.py", line 25, in forward
x = self.nnConv(x, edge_index, edge_features)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/nn_conv.py", line 81, in forward
return self.propagate(edge_index, x=x, pseudo=pseudo)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 250, in propagate
kwargs = self.collect(edge_index, size, mp_type, kwargs)
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 124, in collect
for arg in self.user_args:
File "/home/.conda/envs/pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 594, in getattr
type(self).name, name))
AttributeError: 'NNConv' object has no attribute 'user_args'
The text was updated successfully, but these errors were encountered: