1#ifndef INFINI_OPS_BASE_SOFTMAX_H_
2#define INFINI_OPS_BASE_SOFTMAX_H_
13 const std::optional<DataType> dtype,
Tensor out)
20 dim_{dim < 0 ? dim + static_cast<int64_t>(input.ndim()) : dim},
28 const std::optional<DataType> dtype,
Definition generated/include/operator.h:282
virtual void operator()(const Tensor input, const int64_t dim, const std::optional< DataType > dtype, Tensor out) const =0
std::optional< DataType > dtype_
Definition softmax.h:46
Tensor::Shape input_shape_
Definition softmax.h:32
Tensor::Size row_count_
Definition softmax.h:52
int device_index_
Definition softmax.h:54
Tensor::Shape out_shape_
Definition softmax.h:38
Tensor::Size dim_size_
Definition softmax.h:50
Tensor::Strides out_strides_
Definition softmax.h:40
DataType out_type_
Definition softmax.h:42
Softmax(const Tensor input, const int64_t dim, const std::optional< DataType > dtype, Tensor out)
Definition softmax.h:12
int64_t dim_
Definition softmax.h:44
DataType input_type_
Definition softmax.h:36
Tensor::Size ndim_
Definition softmax.h:48
Tensor::Strides input_strides_
Definition softmax.h:34
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8