brngl / CausalLSTM-Keras

0 stars 0 forks source link

Excuse me, i #1

Open 9527-ly opened 3 years ago

9527-ly commented 3 years ago

excuse me,i also want to get a causallstm layer, but i meet the same question with you. Just like this: File "D:\cnn\CausalLSTM-Keras-master\causal_lstm.py", line 598, in call m = states[2] IndexError: list index out of range STATES: [<tf.Tensor 'causal_lstm_1/convolution:0' shape=(?, 100, 100, 3) dtype=float32>, <tf.Tensor 'causal_lstm_1/convolution:0' shape=(?, 100, 100, 3) dtype=float32>] STATES SHAPE: 2

so i want to know if you have solved this question or can you give me some advice. thanks!

9527-ly commented 3 years ago

def call(self, x, states):# print('STATES:', states) print('STATES SHAPE:', len(states)) h = states[0] c = states[1] m = states[2] self.batch = x.shape[0] self.height = x.shape[2] self.width = x.shape[3]