SenticNet / personality-detection

Implementation of a hierarchical CNN based model to detect Big Five personality traits
http://sentic.net/deep-learning-based-personality-detection.pdf
MIT License
475 stars 167 forks source link

MemoryError: Apply node that caused the error: AdvancedSubtensor1(Words, Elemwise{Cast{int32}}.0) #36

Open SmallZhangZhang opened 2 years ago

SmallZhangZhang commented 2 years ago

I'm sorry to bring this up, but it's very important for me to solve this problem. I run the conv_net_train.py and the following error occurs: MemoryError: Apply node that caused the error: AdvancedSubtensor1(Words, Elemwise{Cast{int32}}.0) Toposort index: 77 Inputs types: [TensorType(float64, matrix), TensorType(int32, vector)] Inputs shapes: [(30392, 300), (2386800,)] Inputs strides: [(2400, 8), (4,)] Inputs values: ['not shown', 'not shown'] Outputs clients: [[Reshape{4}(AdvancedSubtensor1.0, MakeVector{dtype='int64'}.0)]]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer): File "conv_net_train.py", line 510, in activations=[Sigmoid]) File "conv_net_train.py", line 113, in train_conv_net layer0_input = Words[T.cast(x.flatten(), dtype="int32")].reshape(

HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.

l-u-c-ky commented 1 year ago

Hello, I also have this problem in the process of reproduction. Have you solved it? How did you handle it?