1#ifndef INFINI_OPS_BASE_HARDTANH_BACKWARD_H_
2#define INFINI_OPS_BASE_HARDTANH_BACKWARD_H_
11 const double min_val,
const double max_val,
27 const double min_val,
const double max_val,
28 Tensor grad_input)
const = 0;
Definition hardtanh_backward.h:8
HardtanhBackward(const Tensor grad_output, const Tensor input, const double min_val, const double max_val, Tensor grad_input)
Definition hardtanh_backward.h:10
Tensor::Strides grad_output_strides_
Definition hardtanh_backward.h:33
double max_val_
Definition hardtanh_backward.h:51
int device_index_
Definition hardtanh_backward.h:53
Tensor::Shape grad_input_shape_
Definition hardtanh_backward.h:43
Tensor::Strides input_strides_
Definition hardtanh_backward.h:39
DataType input_type_
Definition hardtanh_backward.h:41
double min_val_
Definition hardtanh_backward.h:49
DataType grad_input_type_
Definition hardtanh_backward.h:47
Tensor::Shape grad_output_shape_
Definition hardtanh_backward.h:31
Tensor::Strides grad_input_strides_
Definition hardtanh_backward.h:45
DataType grad_output_type_
Definition hardtanh_backward.h:35
Tensor::Shape input_shape_
Definition hardtanh_backward.h:37
virtual void operator()(const Tensor grad_output, const Tensor input, const double min_val, const double max_val, Tensor grad_input) const =0
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8