#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include template struct IndexReduceParams { int32_t ndim; int32_t reduce_dim; ::c10::metal::array self_strides; ::c10::metal::array self_sizes; ::c10::metal::array source_strides; ::c10::metal::array source_sizes; uint32_t index_stride; }; // Dense index_select: tensors viewed as [outer, dim, inner] contiguous blocks. struct IndexSelectParams { uint32_t inner; uint32_t in_dim_size; uint32_t out_dim_size; uint32_t index_stride; }; #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)