1#ifndef INFINI_OPS_BASE_CLAMP_H_
2#define INFINI_OPS_BASE_CLAMP_H_
13 const std::optional<double> max,
Tensor out)
25 const std::optional<Tensor> max,
Tensor out)
35 min_type_{min ? min->dtype() : DataType::kFloat32},
39 max_type_{max ? max->dtype() : DataType::kFloat32},
43 const std::optional<double> max,
47 const std::optional<Tensor> max,
63 std::optional<double>
min_{};
65 std::optional<double>
max_{};
DataType min_type_
Definition clamp.h:73
Tensor::Strides out_strides_
Definition clamp.h:59
virtual void operator()(const Tensor input, const std::optional< double > min, const std::optional< double > max, Tensor out) const =0
Clamp(const Tensor input, const std::optional< double > min, const std::optional< double > max, Tensor out)
Definition clamp.h:12
int device_index_
Definition clamp.h:83
std::optional< double > max_
Definition clamp.h:65
Clamp(const Tensor input, const std::optional< Tensor > min, const std::optional< Tensor > max, Tensor out)
Definition clamp.h:24
bool has_max_
Definition clamp.h:75
bool has_min_
Definition clamp.h:67
virtual void operator()(const Tensor input, const std::optional< Tensor > min, const std::optional< Tensor > max, Tensor out) const =0
Tensor::Shape out_shape_
Definition clamp.h:57
DataType max_type_
Definition clamp.h:81
Tensor::Shape input_shape_
Definition clamp.h:51
std::optional< double > min_
Definition clamp.h:63
Tensor::Strides max_strides_
Definition clamp.h:79
Tensor::Strides input_strides_
Definition clamp.h:53
DataType out_type_
Definition clamp.h:61
DataType input_type_
Definition clamp.h:55
Tensor::Shape min_shape_
Definition clamp.h:69
Tensor::Shape max_shape_
Definition clamp.h:77
Tensor::Strides min_strides_
Definition clamp.h:71
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8