mcf06 / theano_ctc

Theano bindings for Baidu's CTC library.
BSD 3-Clause "New" or "Revised" License
20 stars 5 forks source link

Operations on gradients are ignored #9

Closed githubnemo closed 8 years ago

githubnemo commented 8 years ago

Related: https://github.com/sherjilozair/ctc/issues/2 Test file: https://github.com/githubnemo/theano_ctc/blob/gradients/tests/test_ctc_gradients.py

Any computation on the gradient of the CTC loss is ignored:

tGrad = T.grad(T.mean(tCost), tsActs)
tGrad2x = T.grad(2 * T.mean(tCost), tsActs)

Both operations will yield the same result.

mcf06 commented 8 years ago

Good catch, thanks. Fixed.