mkldnn concat call cases correction (#471)
* - disable mkldnn concat when number of input arrays > 3072 Signed-off-by: Yurii <iuriish@yahoo.com> * - get rid of loop in calculating of input arrays number Signed-off-by: Yurii <iuriish@yahoo.com>master
parent
ec757f654d
commit
0bc9785508
|
@ -178,7 +178,11 @@ PLATFORM_CHECK(concat, ENGINE_CPU) {
|
|||
|
||||
const auto zType = z->dataType();
|
||||
|
||||
return z->rankOf() < 7 && (zType==DataType::FLOAT32 || zType==DataType::HALF || zType==DataType::BFLOAT16 || zType==DataType::UINT8 || zType==DataType::INT8);
|
||||
const bool isAxisInLastArr = block.getBArguments()->size() == 0 ? false : B_ARG(0);
|
||||
const int numOfInArrs = isAxisInLastArr ? block.width() - 1 : block.width();
|
||||
|
||||
return z->rankOf() < 7 && numOfInArrs <= 3072
|
||||
&& (zType==DataType::FLOAT32 || zType==DataType::HALF || zType==DataType::BFLOAT16 || zType==DataType::UINT8 || zType==DataType::INT8);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue