34 uint32_t maxDims = std::max(numberOfDims1, numberOfDims2);
35 out->
dimensions = std::vector<uint32_t>(maxDims);
36 for (uint32_t i = 1; i <= maxDims; i++)
39 if (i <= numberOfDims1)
44 if (i <= numberOfDims2)
48 if (dim1 != dim2 && dim1 != 1 && dim2 != 1)
50 LOG(ERROR) <<
"Dimensions mismatch for BroadcastSub";
53 out->
dimensions[maxDims - i] = std::max(dim1, dim2);