13 #include <unordered_set>
33 static const std::unordered_set<ReductionOpCode, utility::hash_enum_class>
40 static const std::unordered_set<ReductionOpCode, utility::hash_enum_class>
45 static const std::unordered_set<ReductionOpCode, utility::hash_enum_class>
63 #ifdef BUILD_SYCL_MODULE
71 #ifdef BUILD_CUDA_MODULE
72 void ReductionCUDA(
const Tensor& src,
Helper functions for the ml ops.
void ReductionSYCL(const Tensor &src, Tensor &dst, const SizeVector &dims, bool keepdim, ReductionOpCode op_code)
static const std::unordered_set< ReductionOpCode, utility::hash_enum_class > s_arg_reduce_ops
void ReductionCPU(const Tensor &src, Tensor &dst, const SizeVector &dims, bool keepdim, ReductionOpCode op_code)
static const std::unordered_set< ReductionOpCode, utility::hash_enum_class > s_regular_reduce_ops
void Reduction(const Tensor &src, Tensor &dst, const SizeVector &dims, bool keepdim, ReductionOpCode op_code)
static const std::unordered_set< ReductionOpCode, utility::hash_enum_class > s_boolean_reduce_ops
Generic file read and write utility for python interface.