Re: [theano-users] Theano variable sent to for slicing instead of constant while using theano.grad

2018-03-06 Thread Siddhartha Saxena
Thanks a lot Pascal, I have solved the problem now, the issue was that self.truncate_gradient was a float instead of being an int. -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving

Re: [theano-users] Theano variable sent to for slicing instead of constant while using theano.grad

2018-03-06 Thread Siddhartha Saxena
The dtype of grad_steps and s_ is float64 while self.truncate_gradient is a python float. Sorry I didn't answer it properly previously. Thanks -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop

Re: [theano-users] Theano variable sent to for slicing instead of constant while using theano.grad

2018-03-06 Thread Siddhartha Saxena
grad_steps itself is of with value "Elemwise{minimum,no_inplace}.0". So here a tensor that is s_ ( of type Subtensor{::int64}.0}) is being sliced by a variable. Again how it is reaching there is what i am unable to understand. Thanks -- --- You received this message because you are

[theano-users] Theano variable sent to for slicing instead of constant while using theano.grad

2018-03-03 Thread Siddhartha Saxena
Hi I am training a custom LSTM model on theano with LSTM layers as in (https://github.com/asheshjain399/NeuralModels/tree/master/neuralmodels/layers/LSTM.py) and (https://github.com/asheshjain399/NeuralModels/blob/master/neuralmodels/layers/multilayerLSTM.py). Now the model that I have