//! Index tensor dtype coercion.
//!
//! WGSL has no 64-bit integer, so an I64 index tensor is cast to I32 on the GPU
//! before any indexing kernel sees it.
use crateDType;
use crate;
use crate;
use crateTensor;
/// Cast indices tensor to I32 for WebGPU shaders.
/// WebGPU natively supports I32 indices; I64 indices are cast on GPU.
/// Returns an error for unsupported index dtypes.
pub