lyhue1991/eat_pytorch_in_20_days

_pickle.PicklingError: Can't pickle <function <lambda> at 0x000002DDC0CBB048>: attribute lookup <lambda> on __main__ failed

Yukuncn opened this issue · 4 comments

in1-2 code:
for x,y in dl_trian:
print(x.shape,y.shape)
break
error:_pickle.PicklingError: Can't pickle <function at 0x000002DDC0CBB048>: attribute lookup on main failed.
because the error the whole code can run correctly

my os :windows 10

我也是,会不会是torch版本问题?实在不知怎么解决。

我也是,有人知道怎么解决吗

issue当中有解决方法