1#ifndef INFINI_OPS_BASE_HARDTANH_H_
2#define INFINI_OPS_BASE_HARDTANH_H_
23 const double max_val,
Tensor out)
const = 0;
DataType out_type_
Definition hardtanh.h:36
int device_index_
Definition hardtanh.h:42
Tensor::Strides input_strides_
Definition hardtanh.h:28
Tensor::Strides out_strides_
Definition hardtanh.h:34
Hardtanh(const Tensor input, const double min_val, const double max_val, Tensor out)
Definition hardtanh.h:10
double min_val_
Definition hardtanh.h:38
DataType input_type_
Definition hardtanh.h:30
Tensor::Shape out_shape_
Definition hardtanh.h:32
virtual void operator()(const Tensor input, const double min_val, const double max_val, Tensor out) const =0
double max_val_
Definition hardtanh.h:40
Tensor::Shape input_shape_
Definition hardtanh.h:26
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8