1#ifndef INFINI_OPS_BASE_GATHER_H_
2#define INFINI_OPS_BASE_GATHER_H_
11 const bool sparse_grad,
Tensor out)
26 const int64_t dim,
const bool sparse_grad,
Tensor::Strides out_strides_
Definition gather.h:44
Tensor::Shape index_shape_
Definition gather.h:36
bool sparse_grad_
Definition gather.h:50
Tensor::Strides input_strides_
Definition gather.h:32
DataType input_type_
Definition gather.h:34
DataType out_type_
Definition gather.h:46
int64_t dim_
Definition gather.h:48
virtual void operator()(const Tensor input, const Tensor index, const int64_t dim, const bool sparse_grad, Tensor out) const =0
int device_index_
Definition gather.h:52
Tensor::Shape out_shape_
Definition gather.h:42
Gather(const Tensor input, const Tensor index, const int64_t dim, const bool sparse_grad, Tensor out)
Definition gather.h:10
Tensor::Shape input_shape_
Definition gather.h:30
Tensor::Strides index_strides_
Definition gather.h:38
DataType index_type_
Definition gather.h:40
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8