terminate called after throwing an instance of 'std::invalid_argument
robotzheng opened this issue · comments
[dynet] random seed: 42
[dynet] using autobatching
[dynet] allocating memory: 1024MB
[dynet] memory allocation done.
terminate called after throwing an instance of 'std::invalid_argument'
what(): Dynet does not support both dynamic increasing of memory pool size, and automatic batching or memory checkpointing. If you want to use automatic batching or checkpointing, please pre-allocate enough memory using the --dynet-mem command line option (details http://dynet.readthedocs.io/en/latest/commandline.html).
~
Thanks.
if turn off autobatch,
[dynet] random seed: 42
[dynet] allocating memory: 1024MB
[dynet] memory allocation done.
Traceback (most recent call last):
File "train.py", line 165, in
File "train.py", line 109, in main
# Backward propagation
File "_dynet.pyx", line 1600, in _dynet.Expression.value
File "_dynet.pyx", line 1614, in _dynet.Expression.value
ValueError: Out-of-bounds attempt to access index 29999 for LookupParameter of size 29999
Thank you for reporting. I'll fix it.
Fixed. thank you