1#ifndef INFINI_OPS_BASE_TOPK_H_
2#define INFINI_OPS_BASE_TOPK_H_
10 Topk(
const Tensor input,
const int64_t k,
const int64_t dim,
11 const bool largest,
const bool sorted,
Tensor values,
Tensor indices)
28 const int64_t dim,
const bool largest,
29 const bool sorted,
Tensor values,
Definition generated/include/operator.h:282
Tensor::Shape values_shape_
Definition topk.h:39
Tensor::Shape input_shape_
Definition topk.h:33
DataType input_type_
Definition topk.h:37
DataType indices_type_
Definition topk.h:49
Tensor::Shape indices_shape_
Definition topk.h:45
Tensor::Strides values_strides_
Definition topk.h:41
int64_t k_
Definition topk.h:51
virtual void operator()(const Tensor input, const int64_t k, const int64_t dim, const bool largest, const bool sorted, Tensor values, Tensor indices) const =0
Tensor::Strides indices_strides_
Definition topk.h:47
Tensor::Strides input_strides_
Definition topk.h:35
Topk(const Tensor input, const int64_t k, const int64_t dim, const bool largest, const bool sorted, Tensor values, Tensor indices)
Definition topk.h:10
DataType values_type_
Definition topk.h:43
int64_t dim_
Definition topk.h:53
bool sorted_
Definition topk.h:57
bool largest_
Definition topk.h:55
int device_index_
Definition topk.h:59
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8