Merge branch 'ag_dev_updates_KonduitAI_master' of https://github.com/eclipse/deeplearning4j into ag_dev_updates_KonduitAI_master

master
agibsonccc 2021-02-18 11:47:04 +09:00
commit c56be87d5a
1 changed files with 1 additions and 1 deletions

View File

@ -2619,7 +2619,7 @@ INLINEDEF _CUDA_HD int numOfNonUnitDims(const int rank, const Nd4jLong* inShape)
} }
INLINEDEF _CUDA_HD bool isEmpty(const Nd4jLong *shapeInfo) { INLINEDEF _CUDA_HD bool isEmpty(const Nd4jLong *shapeInfo) {
return ((shape::extra(const_cast<Nd4jLong*>(shapeInfo)) & ARRAY_EMPTY) == ARRAY_EMPTY) || (!shape::isScalar(shapeInfo) && shape::length(shapeInfo) < 1); return ((shape::extra(const_cast<Nd4jLong*>(shapeInfo)) & ARRAY_EMPTY) == ARRAY_EMPTY) ;
} }