since webgpu does not do well on int64 we cast dims of shapes from int64 to uint32 in many places.
To avoid lots of random static_cast or onnxruntime::narrow we should have a generic way, ie a method on the Shape class that returns the dims as checked uint32.
since webgpu does not do well on int64 we cast dims of shapes from int64 to uint32 in many places.
To avoid lots of random static_cast or onnxruntime::narrow we should have a generic way, ie a method on the Shape class that returns the dims as checked uint32.