change IllegalArgumentException to RuntimeException

This commit is contained in:
AlyaNovikova 2021-03-12 15:43:44 +03:00
parent 70e1861e53
commit 626d5c98fa

View File

@ -75,7 +75,7 @@ public class RealTensorAlgebra : TensorPartialDivisionAlgebra<Double, RealTensor
val curDim = shape[i] val curDim = shape[i]
val offset = totalDim - shape.size val offset = totalDim - shape.size
if (curDim != 1 && totalShape[i + offset] != curDim) { if (curDim != 1 && totalShape[i + offset] != curDim) {
throw IllegalArgumentException("Shapes are not compatible and cannot be broadcast") throw RuntimeException("Shapes are not compatible and cannot be broadcast")
} }
} }
} }