1#ifndef INFINI_OPS_BASE_SORT_H_
2#define INFINI_OPS_BASE_SORT_H_
12 Sort(
const Tensor input,
const int64_t dim,
const bool descending,
27 Sort(
const Tensor input,
const std::optional<bool> stable,
const int64_t dim,
44 const bool descending,
Tensor values,
48 const int64_t dim,
const bool descending,
Definition generated/include/operator.h:282
virtual void operator()(const Tensor input, const int64_t dim, const bool descending, Tensor values, Tensor indices) const =0
int device_index_
Definition sort.h:76
Sort(const Tensor input, const int64_t dim, const bool descending, Tensor values, Tensor indices)
Definition sort.h:12
DataType indices_type_
Definition sort.h:68
Tensor::Strides input_strides_
Definition sort.h:54
virtual void operator()(const Tensor input, const std::optional< bool > stable, const int64_t dim, const bool descending, Tensor values, Tensor indices) const =0
Tensor::Strides indices_strides_
Definition sort.h:66
DataType values_type_
Definition sort.h:62
Tensor::Strides values_strides_
Definition sort.h:60
Tensor::Shape values_shape_
Definition sort.h:58
int64_t dim_
Definition sort.h:70
Tensor::Shape indices_shape_
Definition sort.h:64
std::optional< bool > stable_
Definition sort.h:74
bool descending_
Definition sort.h:72
Sort(const Tensor input, const std::optional< bool > stable, const int64_t dim, const bool descending, Tensor values, Tensor indices)
Definition sort.h:27
Tensor::Shape input_shape_
Definition sort.h:52
DataType input_type_
Definition sort.h:56
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8