Hi all,
I am using multiple CPUS to train my model on azure with MongoDB. It seems I need to open a connection to data in each of the threads. Then I got this error.
Traceback (most recent call last):
File "main.py", line 225, in <module>
model.share_memory()
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 468, in share_memory
return self._apply(lambda t: t.share_memory_())
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 118, in _apply
module._apply(fn)
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 124, in _apply
param.data = fn(param.data)
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 468, in <lambda>
return self._apply(lambda t: t.share_memory_())
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/tensor.py", line 86, in share_memory_
self.storage().share_memory_()
File "/home/textiq/anaconda/lib/python3.6/site-packages/torch/storage.py", line 101, in share_memory_
self._share_fd_()
RuntimeError: $ Torch: unable to mmap memory: you tried to mmap 0GB. at /py/conda-bld/pytorch_1493681908901/work/torch/lib/TH/THAllocator.c:317`
Could some one tell me what to do to solve this problem?
Thanks in advance.