ElegantRL icon indicating copy to clipboard operation
ElegantRL copied to clipboard

TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not map

Open LunbiWa opened this issue 1 year ago • 2 comments

Run demo_FinRL_ElegantRL_China_A_shares.ipynb JupyterLab reports an error

image

Thanks!

LunbiWa avatar May 22 '23 09:05 LunbiWa

I faced the same question.

Arain-sh avatar May 24 '23 12:05 Arain-sh

将所有[map(list, zip(*traj_list))] 的地方改成 list(map(list, zip(*traj_list))),参考https://github.com/AI4Finance-Foundation/ElegantRL/issues/205

TheodoreG avatar Jun 12 '23 09:06 TheodoreG