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.
-
~
bitwise_not()
The error is now fixed. Did a pull on the Opennmt master.