Error while training

I get this error while training:

RuntimeError: Subtraction, the - operator, with a bool tensor is not supported. If you are trying to invert a mask, use the ~ or bitwise_not() operator instead.

The error is now fixed. Did a pull on the Opennmt master.