1#ifndef INFINI_OPS_BASE_SUBTRACT_H_
2#define INFINI_OPS_BASE_SUBTRACT_H_
26 [[deprecated(
"Use the `(input, other, alpha, out)` overload instead.")]]
50 const double alpha,
Tensor out)
const = 0;
54 [[deprecated(
"Use `operator()(input, other, alpha, out)` instead.")]]
56 const double alpha)
const = 0;
59 const double alpha,
Tensor out)
const = 0;
Definition generated/include/operator.h:282
Subtract(const Tensor input, const Tensor other, const double alpha, Tensor out)
Definition subtract.h:10
Subtract(const Tensor input, const double other, const double alpha, Tensor out)
Definition subtract.h:37
Tensor::Strides input_strides_
Definition subtract.h:64
Tensor::Strides out_strides_
Definition subtract.h:76
virtual void operator()(const Tensor input, const double other, const double alpha, Tensor out) const =0
Tensor::Shape other_shape_
Definition subtract.h:68
virtual void operator()(Tensor input, const Tensor other, const double alpha) const =0
Tensor::Shape input_shape_
Definition subtract.h:62
double other_
Definition subtract.h:82
Tensor::Shape out_shape_
Definition subtract.h:74
Subtract(Tensor input, const Tensor other, const double alpha)
Definition subtract.h:27
DataType out_type_
Definition subtract.h:78
DataType other_type_
Definition subtract.h:72
DataType input_type_
Definition subtract.h:66
Tensor::Strides other_strides_
Definition subtract.h:70
virtual void operator()(const Tensor input, const Tensor other, const double alpha, Tensor out) const =0
int device_index_
Definition subtract.h:84
double alpha_
Definition subtract.h:80
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8