1#ifndef INFINI_OPS_BASE_NAN_TO_NUM_H_
2#define INFINI_OPS_BASE_NAN_TO_NUM_H_
13 const std::optional<double> posinf,
14 const std::optional<double> neginf,
Tensor out)
27 const std::optional<double> posinf,
28 const std::optional<double> neginf,
44 std::optional<double>
nan_{};
Definition nan_to_num.h:10
std::optional< double > posinf_
Definition nan_to_num.h:46
NanToNum(const Tensor input, const std::optional< double > nan, const std::optional< double > posinf, const std::optional< double > neginf, Tensor out)
Definition nan_to_num.h:12
Tensor::Shape input_shape_
Definition nan_to_num.h:32
Tensor::Strides input_strides_
Definition nan_to_num.h:34
Tensor::Shape out_shape_
Definition nan_to_num.h:38
virtual void operator()(const Tensor input, const std::optional< double > nan, const std::optional< double > posinf, const std::optional< double > neginf, Tensor out) const =0
Tensor::Strides out_strides_
Definition nan_to_num.h:40
DataType input_type_
Definition nan_to_num.h:36
std::optional< double > nan_
Definition nan_to_num.h:44
std::optional< double > neginf_
Definition nan_to_num.h:48
int device_index_
Definition nan_to_num.h:50
DataType out_type_
Definition nan_to_num.h:42
Definition generated/include/operator.h:282
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8