Merged PR 5390213: Tile allow 0 in repeats

0 is valid in Tile in "repeats" parameter. The CPU kernel handles it fine. So should the DML EP.

Related work items: #29970551
This commit is contained in:
Dwayne Robinson 2020-11-10 21:05:59 +00:00
parent de85638543
commit 7d98596bfa

View file

@ -1273,7 +1273,7 @@ class TileHelper {
ML_CHECK_VALID_ARGUMENT(repeatsTensor.IsCpuData(), "Tile's repeats tensor must be CPU Tensor.");
for (size_t i = 0; i < dimCount; ++i) {
ML_CHECK_VALID_ARGUMENT(repeatsData[i] > 0, "Repeat values should be > 0.");
ML_CHECK_VALID_ARGUMENT(repeatsData[i] >= 0, "Repeat values should be >= 0.");
m_repeatsData.push_back(gsl::narrow_cast<uint32_t>(repeatsData[i]));
}