diff --git a/libnd4j/include/helpers/shape.h b/libnd4j/include/helpers/shape.h index 419372be9..63e532f32 100644 --- a/libnd4j/include/helpers/shape.h +++ b/libnd4j/include/helpers/shape.h @@ -2619,7 +2619,7 @@ INLINEDEF _CUDA_HD int numOfNonUnitDims(const int rank, const Nd4jLong* inShape) } INLINEDEF _CUDA_HD bool isEmpty(const Nd4jLong *shapeInfo) { - return ((shape::extra(const_cast(shapeInfo)) & ARRAY_EMPTY) == ARRAY_EMPTY) || (!shape::isScalar(shapeInfo) && shape::length(shapeInfo) < 1); + return ((shape::extra(const_cast(shapeInfo)) & ARRAY_EMPTY) == ARRAY_EMPTY) ; }