#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include // Byte geometry for one dispatch of the inner_contiguous_scatter kernel: a // CONTIGUOUS input copied into regularly-strided blocks of the output -- each // slice_bytes run is placed at off_bytes + k * out_stride_bytes. Backs the // contiguous cat fast path and (in future) same-dtype scatter into strided // views. idx_type_t is the byte index width: uint32_t unless an addressed // extent can exceed 4GB. template struct StridedBlockParams { idx_type_t chunk_base; idx_type_t slice_bytes; idx_type_t out_stride_bytes; idx_type_t off_bytes; uint32_t nbytes; }; #else #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined." #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)