diff --git a/datavec/datavec-api/src/main/java/org/datavec/api/transform/ndarray/NDArrayScalarOpTransform.java b/datavec/datavec-api/src/main/java/org/datavec/api/transform/ndarray/NDArrayScalarOpTransform.java index ade7e52e3..c292910f7 100644 --- a/datavec/datavec-api/src/main/java/org/datavec/api/transform/ndarray/NDArrayScalarOpTransform.java +++ b/datavec/datavec-api/src/main/java/org/datavec/api/transform/ndarray/NDArrayScalarOpTransform.java @@ -89,7 +89,8 @@ public class NDArrayScalarOpTransform extends BaseColumnTransform { a.divi(scalar); break; case Modulus: - throw new UnsupportedOperationException(mathOp + " is not supported for NDArrayWritable"); + a.fmodi(scalar); + break; case ReverseSubtract: a.rsubi(scalar); break;