From c6ae97cac9411ed0b97fce5daa7199bddd0dbf1f Mon Sep 17 00:00:00 2001 From: Abdelrauf Date: Wed, 17 Feb 2021 16:06:58 +0400 Subject: [PATCH] fix: cuda test failure in summarystat by reverting changes in shape.h (#9184) Signed-off-by: AbdelRauf --- libnd4j/include/helpers/shape.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ; }