1#ifndef INFINI_OPS_BASE_INDEX_ADD_H_
2#define INFINI_OPS_BASE_INDEX_ADD_H_
11 const int64_t dim,
const double alpha,
Tensor out)
29 const Tensor source,
const int64_t dim,
30 const double alpha,
Tensor out)
const = 0;
DataType out_type_
Definition index_add.h:55
DataType index_type_
Definition index_add.h:43
Tensor::Shape index_shape_
Definition index_add.h:39
DataType source_type_
Definition index_add.h:49
Tensor::Strides index_strides_
Definition index_add.h:41
double alpha_
Definition index_add.h:59
Tensor::Shape input_shape_
Definition index_add.h:33
virtual void operator()(const Tensor input, const Tensor index, const Tensor source, const int64_t dim, const double alpha, Tensor out) const =0
int64_t dim_
Definition index_add.h:57
DataType input_type_
Definition index_add.h:37
Tensor::Shape out_shape_
Definition index_add.h:51
Tensor::Strides out_strides_
Definition index_add.h:53
Tensor::Strides input_strides_
Definition index_add.h:35
IndexAdd(const Tensor input, const Tensor index, const Tensor source, const int64_t dim, const double alpha, Tensor out)
Definition index_add.h:10
Tensor::Shape source_shape_
Definition index_add.h:45
int device_index_
Definition index_add.h:61
Tensor::Strides source_strides_
Definition index_add.h:47
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8