1#ifndef INFINI_OPS_BASE_ARGSORT_H_
2#define INFINI_OPS_BASE_ARGSORT_H_
11 const bool stable,
Tensor out)
25 [[deprecated(
"Use the PyTorch-compatible parameter order instead.")]]
27 const bool descending,
Tensor out)
28 :
Argsort{input, dim, descending, stable, out} {}
31 const bool stable,
Tensor out)
const {
32 (*this)(input, stable, dim, descending, out);
37 [[deprecated(
"Use the PyTorch-compatible parameter order instead.")]]
39 const int64_t dim,
const bool descending,
void operator()(const Tensor input, const int64_t dim, const bool descending, const bool stable, Tensor out) const
Definition argsort.h:30
int64_t dim_
Definition argsort.h:57
DataType input_type_
Definition argsort.h:47
Tensor::Shape input_shape_
Definition argsort.h:43
bool descending_
Definition argsort.h:59
Argsort(const Tensor input, const int64_t dim, const bool descending, const bool stable, Tensor out)
Definition argsort.h:10
Tensor::Strides input_strides_
Definition argsort.h:45
int device_index_
Definition argsort.h:61
bool stable_
Definition argsort.h:55
virtual void operator()(const Tensor input, const bool stable, const int64_t dim, const bool descending, Tensor out) const =0
DataType out_type_
Definition argsort.h:53
Argsort(const Tensor input, const bool stable, const int64_t dim, const bool descending, Tensor out)
Definition argsort.h:26
Tensor::Strides out_strides_
Definition argsort.h:51
Tensor::Shape out_shape_
Definition argsort.h:49
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8