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
==================================================================================================
Traceback (most recent call last):
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
action_type = pdqn_model.forward({"state": obs, "action_args": action_args["action_args"]}, "compute_discrete")
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/ding/model/template/pdqn.py", line 137, in forward
return getattr(self, mode)(inputs)
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/ding/model/template/pdqn.py", line 182, in compute_discrete
mp_action.scatter_(dim=-1, index=index, src=action_args.unsqueeze(-1))
RuntimeError: Index tensor must have the same number of dimensions as src tensor
The text was updated successfully, but these errors were encountered:
This problem is because that PDQN doesn't support 3-dimension obs like (T, B, N), however, the operations in T and B are usually independent and parallel, we can view them as a new batch=T*B dimension, for example:
==================================================================================================
Traceback (most recent call last):
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
action_type = pdqn_model.forward({"state": obs, "action_args": action_args["action_args"]}, "compute_discrete")
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/ding/model/template/pdqn.py", line 137, in forward
return getattr(self, mode)(inputs)
File "/home/xxx/anaconda3/envs/vnpy/lib/python3.7/site-packages/ding/model/template/pdqn.py", line 182, in compute_discrete
mp_action.scatter_(dim=-1, index=index, src=action_args.unsqueeze(-1))
RuntimeError: Index tensor must have the same number of dimensions as src tensor
The text was updated successfully, but these errors were encountered: