1#ifndef INFINI_OPS_BASE_DIVIDE_H_
2#define INFINI_OPS_BASE_DIVIDE_H_
26 const std::optional<std::string> rounding_mode,
Tensor out)
41 [[deprecated(
"Use the `(input, other, out)` overload instead.")]]
63 [[deprecated(
"Use the explicit-output rounding-mode overload instead.")]]
65 const std::optional<std::string> rounding_mode)
76 const std::optional<std::string> rounding_mode,
Tensor out)
91 const std::optional<std::string> rounding_mode,
96 [[deprecated(
"Use `operator()(input, other, out)` instead.")]]
104 [[deprecated(
"Use the explicit-output rounding-mode overload instead.")]]
107 const std::optional<std::string> rounding_mode)
const = 0;
110 const std::optional<std::string> rounding_mode,
Tensor::Strides input_strides_
Definition divide.h:116
virtual void operator()(Tensor input, const Tensor other) const =0
virtual void operator()(const Tensor input, const double other, const std::optional< std::string > rounding_mode, Tensor out) const =0
virtual void operator()(const Tensor input, const Tensor other, const std::optional< std::string > rounding_mode, Tensor out) const =0
std::optional< std::string > rounding_mode_
Definition divide.h:132
DataType other_type_
Definition divide.h:124
Divide(const Tensor input, const double other, const std::optional< std::string > rounding_mode, Tensor out)
Definition divide.h:75
DataType out_type_
Definition divide.h:130
virtual void operator()(Tensor input, const Tensor other, const std::optional< std::string > rounding_mode) const =0
Divide(const Tensor input, const Tensor other, Tensor out)
Definition divide.h:13
Divide(const Tensor input, const double other, Tensor out)
Definition divide.h:51
Tensor::Shape input_shape_
Definition divide.h:114
virtual void operator()(const Tensor input, const double other, Tensor out) const =0
Tensor::Shape out_shape_
Definition divide.h:126
Divide(Tensor input, const Tensor other, const std::optional< std::string > rounding_mode)
Definition divide.h:64
Tensor::Strides other_strides_
Definition divide.h:122
DataType input_type_
Definition divide.h:118
Divide(const Tensor input, const Tensor other, const std::optional< std::string > rounding_mode, Tensor out)
Definition divide.h:25
int device_index_
Definition divide.h:136
Tensor::Shape other_shape_
Definition divide.h:120
Divide(Tensor input, const Tensor other)
Definition divide.h:42
virtual void operator()(const Tensor input, const Tensor other, Tensor out) const =0
Tensor::Strides out_strides_
Definition divide.h:128
double other_
Definition divide.h:134
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8