mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-24 22:17:32 +00:00
[webgpu] fix indices type when it's 4D (#22758)
### Description Fix indices type from `array<u32, 4>` to `vec4<u32>` when the variable is 4D.
This commit is contained in:
parent
6a295eb75b
commit
a436b3af1a
1 changed files with 2 additions and 2 deletions
|
|
@ -81,8 +81,8 @@ constexpr static const auto ELEMENT_TYPE = details::_to_std_array(ELEMENT_TYPE_A
|
|||
|
||||
inline std::string GetIndicesType(int rank) {
|
||||
return rank < 2 ? "u32"
|
||||
: (rank < 4 ? MakeStringWithClassicLocale("vec", rank, "<u32>")
|
||||
: MakeStringWithClassicLocale("array<u32, ", rank, ">"));
|
||||
: (rank <= 4 ? MakeStringWithClassicLocale("vec", rank, "<u32>")
|
||||
: MakeStringWithClassicLocale("array<u32, ", rank, ">"));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
Loading…
Reference in a new issue