mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
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:
parent
de85638543
commit
7d98596bfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue