1#ifndef INFINI_OPS_BASE_INDEX_REDUCE_H_
2#define INFINI_OPS_BASE_INDEX_REDUCE_H_
13 const int64_t dim,
const std::string reduce,
14 const bool include_self,
Tensor out)
33 const Tensor source,
const int64_t dim,
34 const std::string reduce,
const bool include_self,
Definition index_reduce.h:10
Tensor::Shape input_shape_
Definition index_reduce.h:38
int device_index_
Definition index_reduce.h:68
Tensor::Shape out_shape_
Definition index_reduce.h:56
DataType source_type_
Definition index_reduce.h:54
IndexReduce(const Tensor input, const Tensor index, const Tensor source, const int64_t dim, const std::string reduce, const bool include_self, Tensor out)
Definition index_reduce.h:12
DataType index_type_
Definition index_reduce.h:48
Tensor::Strides index_strides_
Definition index_reduce.h:46
DataType out_type_
Definition index_reduce.h:60
std::string reduce_
Definition index_reduce.h:64
Tensor::Shape source_shape_
Definition index_reduce.h:50
DataType input_type_
Definition index_reduce.h:42
bool include_self_
Definition index_reduce.h:66
Tensor::Strides source_strides_
Definition index_reduce.h:52
Tensor::Strides input_strides_
Definition index_reduce.h:40
virtual void operator()(const Tensor input, const Tensor index, const Tensor source, const int64_t dim, const std::string reduce, const bool include_self, Tensor out) const =0
Tensor::Shape index_shape_
Definition index_reduce.h:44
Tensor::Strides out_strides_
Definition index_reduce.h:58
int64_t dim_
Definition index_reduce.h:62
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8