#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include C10_METAL_CONSTEXPR unsigned kSoftmaxThreads = 256; C10_METAL_CONSTEXPR unsigned kSoftmaxMaxThreads = 1024; template struct SoftmaxParams { index_t dim_size; index_t num_rows; index_t inner_size; index_t chunk_size; index_t n_chunks; uint32_t ndim; uint32_t dim; ::c10::metal::array sizes; ::c10::metal::array strides; }; #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)