警告解决方案:To copy construct from a tensor, it is recommended to use...
代码x_train,y_train,x_valid,y_valid=map(torch.tensor,(x_train,y_train,x_valid,y_valid))警告:D:\Users\ThinkStation\anaconda3\envs\pytorch\lib\site-packages\ipykernel_launcher.py:2:UserWarning:Tocopyconstru