fangwei123456 / spikingjelly

SpikingJelly is an open-source deep learning framework for Spiking Neural Network (SNN) based on PyTorch.
https://spikingjelly.readthedocs.io
Other
1.22k stars 233 forks source link

A problem with RAM. DSQN. #545

Open timswim opened 1 month ago

timswim commented 1 month ago

For faster response

| Reinforcement Learning | lucifer2859

Issue type

SpikingJelly version

master

Description

Hello, I am working on the DSQN project, but I can't finish the training, because the RAM is gradually filling up (within a few thousand frames after the training has started). Could this be a bug in the code/compatibility issue or do I just need more memory (I have 32GB)?

Thanks in advance!

# Lines of code where memory is filled
loss_v = common.calc_loss_dqn(batch, net, tgt_net.target_model, gamma=params['gamma'], cuda=args.cuda, cuda_async=True)
loss_v.backward()