You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting up my environment as indicated on the README, I discovered torchdiffeq._impl.odeint.py contains the following import:
from torch.autograd.functional import vjp
However, torch.autograd.functional doesn't exist in pytorch 1.3.1.
Then, updating torch and torchvision to their latest versions results in the following error:
Traceback (most recent call last): File "run.py", line 137, in <module> oderl.train_env_model(num_iters=args.iters) File "/root/repos/mbrl-smdp-ode/mbrl.py", line 161, in train_env_model train=True) File "/root/repos/mbrl-smdp-ode/model.py", line 581, in compute_loss self.predict_next_states(traj_cur_states, actions, time_steps, lengths, train=train) File "/root/repos/mbrl-smdp-ode/model.py", line 563, in predict_next_states train=train) # [N, T+1, D_latent] File "/root/repos/mbrl-smdp-ode/model.py", line 508, in encode_latent_traj means_z0, logvars_z0 = self.encoder_z0(torch.cat((states, actions), dim=-1), time_steps, lengths) File "/root/miniconda3/envs/mbrl_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/root/repos/mbrl-smdp-ode/model.py", line 78, in forward data_packed = pack_padded_sequence(data, lengths, batch_first=True, enforce_sorted=False) File "/root/miniconda3/envs/mbrl_env/lib/python3.6/site-packages/torch/nn/utils/rnn.py", line 245, in pack_padded_sequence _VF._pack_padded_sequence(input, lengths, batch_first) RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor, but got 1D cuda:0 Long tensor (mbrl_env) root@insideDocker:~/repos/mbrl-smdp-ode#
Can anyone help resolve this? Trying to reproduce the results of this paper for baseline measurements of some new work :)
The text was updated successfully, but these errors were encountered:
``Hi,
After setting up my environment as indicated on the README, I discovered torchdiffeq._impl.odeint.py contains the following import:
from torch.autograd.functional import vjp
However, torch.autograd.functional doesn't exist in pytorch 1.3.1.
Then, updating torch and torchvision to their latest versions results in the following error:
Traceback (most recent call last): File "run.py", line 137, in <module> oderl.train_env_model(num_iters=args.iters) File "/root/repos/mbrl-smdp-ode/mbrl.py", line 161, in train_env_model train=True) File "/root/repos/mbrl-smdp-ode/model.py", line 581, in compute_loss self.predict_next_states(traj_cur_states, actions, time_steps, lengths, train=train) File "/root/repos/mbrl-smdp-ode/model.py", line 563, in predict_next_states train=train) # [N, T+1, D_latent] File "/root/repos/mbrl-smdp-ode/model.py", line 508, in encode_latent_traj means_z0, logvars_z0 = self.encoder_z0(torch.cat((states, actions), dim=-1), time_steps, lengths) File "/root/miniconda3/envs/mbrl_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/root/repos/mbrl-smdp-ode/model.py", line 78, in forward data_packed = pack_padded_sequence(data, lengths, batch_first=True, enforce_sorted=False) File "/root/miniconda3/envs/mbrl_env/lib/python3.6/site-packages/torch/nn/utils/rnn.py", line 245, in pack_padded_sequence _VF._pack_padded_sequence(input, lengths, batch_first) RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor, but got 1D cuda:0 Long tensor (mbrl_env) root@insideDocker:~/repos/mbrl-smdp-ode#
Can anyone help resolve this? Trying to reproduce the results of this paper for baseline measurements of some new work :)
The text was updated successfully, but these errors were encountered: