tf-lstm-char-cnn
tf-lstm-char-cnn copied to clipboard
fixing non-determenistic op ordering reported as issue #20
@mkudinov please review.
This is somewhat theoretical fix.
- removed initial cleanup of padding in char embedding matrix from train.py. This should not affect training as each training step will be clearing it anyway
- used
tf.control_dependencies
to schedule embedding cleanup just after gradients were applied (intrain.py
)
Please, confirm it is working correctly now.