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

#RecursionError: maximum recursion depth exceeded while calling a Python object运行KLDivLoss.py和tensorboardXdemo.py时均报如下错误 #49

Open
LambertShiGan opened this issue Sep 8, 2022 · 3 comments

Comments

@LambertShiGan
Copy link

475894ddd16f8f1be1b2caee17f6f82

c3694957da05be2035286a4b92c58a0

@TingsongYu
Copy link
Owner

看着比较像栈溢出,而且是不同的代码里报相同的错误,看看这个方法能否解决:https://blog.csdn.net/weixin_48419914/article/details/122011753

@LambertShiGan
Copy link
Author

谢谢您的建议,请问这是否和我用的pytorch是gpu版本的有关呢,不是很清楚为什么会出现该类报错原因

@LambertShiGan
Copy link
Author

报错的行在第29行,修改了默认的递归深度后,会出现栈区溢出的问题,目前还是不知道怎么解决
image

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