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

大佬你好,我想问一下您fork的LianHaiMiao/Attentive-Group-Recommendation代码运行内存溢出的问题。 #9

Open
liheyong opened this issue May 14, 2020 · 3 comments

Comments

@liheyong
Copy link

运行错误如下:
RuntimeError: [enforce fail at ..\c10\core\CPUAllocator.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 986880 bytes. Buy new RAM!

----》错误指向这一行 training(agree, dataset.get_group_dataloader(config.batch_size), epoch, config, 'group'),请问这个可以通过减小batch_size来处理吗? 谢谢

@liheyong
Copy link
Author

另外还想问下,对代码优化让他训练快一点,大改可以从什么地方入手,谢谢!

@Thinkgamer
Copy link
Owner

运行错误如下:
RuntimeError: [enforce fail at ..\c10\core\CPUAllocator.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 986880 bytes. Buy new RAM!

----》错误指向这一行 training(agree, dataset.get_group_dataloader(config.batch_size), epoch, config, 'group'),请问这个可以通过减小batch_size来处理吗? 谢谢

你报的错误是内存不足,你可以chan格式下减小batch_size和迭代次数,但是这样也没什么意义,准确度还是不够的。

@Thinkgamer
Copy link
Owner

另外还想问下,对代码优化让他训练快一点,大改可以从什么地方入手,谢谢!

代码优化的话,你需要对整体代码熟悉呀,训练快点的话可以减小层数、每层的神经单元!

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