attention-mechanisms icon indicating copy to clipboard operation
attention-mechanisms copied to clipboard

Bug Report

Open Dielianss opened this issue 5 years ago • 3 comments

Dear sir or madam:

Thanks for your time. Recently I have been studying your codes of attention-mechanisms and felt it is very beneficial for me. However, a bug occurs when I run document_classification.py, which throws an error that: 'Dimension' object does not support indexing. It seems that some bugs exist in Class Attention(Layer). The Parameter config was set to 1 and 2 respectively but the same bug appears, and it points out that the codes "self.input_sequence_length, self.hidden_dim = input_shape[0][1], input_shape[0][2]" (line 103, layers.py) lead to the problem. Could you please help me to fix this bug. I'd appreciate it if you are kind to help me.

Best wishes, Jie Yang 1 2

Dielianss avatar Oct 26 '19 12:10 Dielianss

Facing the same issue

jain-harshil avatar Nov 08 '19 20:11 jain-harshil

How to dealt with this issue??

myvitriol avatar Aug 14 '20 01:08 myvitriol

same issue, how to solve it?

karimarwah avatar May 30 '21 08:05 karimarwah