Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬您好,训练sha时报错 #27

Open
xuebaobizui1 opened this issue Mar 22, 2023 · 1 comment
Open

大佬您好,训练sha时报错 #27

xuebaobizui1 opened this issue Mar 22, 2023 · 1 comment

Comments

@xuebaobizui1
Copy link

bregman_pytorch.py: 173:UserWarning: An output with one or more elements was resized since it had shape [1024], which does not match the required output shape [1, 1024].This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at ../aten/src/ATen/native/Resize.cpp:23.)

我使用您的原版代码训练时只在开头报了一次这个错误,之后每个epoch都是正常显示的。
但是当我改动了一些网络结构之后再进行训练之后每个epoch都会报这个错误。我从训练日志看到 loss 确实在不断降低,我想知道这是否对于训练结果有影响。我现在还在训练中,没法进行test。当我训练完成后会对本问题的描述进行补充。
感谢!!!

@wfs123456
Copy link
Owner

wfs123456 commented Mar 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants