Skip to content
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

TypeError: forward() got multiple values for argument 'is_training' #9

Open
nothingtoexplain opened this issue May 30, 2022 · 0 comments

Comments

@nothingtoexplain
Copy link

I encountered a problem after running the run_model.py

The erro is
File "/home/zhn/zha/code/meshgraphnets-main/run_model.py", line 1084, in <module> app.run(main) File "/home/zhn/anaconda3/envs/meshgraphnets/lib/python3.9/site-packages/absl/app.py", line 312, in run _run_main(main, args) File "/home/zhn/anaconda3/envs/meshgraphnets/lib/python3.9/site-packages/absl/app.py", line 258, in _run_main sys.exit(main(argv)) File "/home/zhn/zha/code/meshgraphnets-main/run_model.py", line 766, in main train_loss_record = learner(model, params, run_step_config) File "/home/zhn/zha/code/meshgraphnets-main/run_model.py", line 364, in learner network_output = model(inputs=data_frame, is_training=True) File "/home/zhn/anaconda3/envs/meshgraphnets/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl return forward_call(*input, **kwargs) File "/home/zhn/zha/code/meshgraphnets-main/cfd_model.py", line 127, in forward return self.learned_model(graph, self._edge_normalizer, is_training=True) File "/home/zhn/anaconda3/envs/meshgraphnets/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl return forward_call(*input, **kwargs) TypeError: forward() got multiple values for argument 'is_training'
I haven't changed the code yet when I encountered the above problem. I hope someone can help me. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant