InfiniOps
Operator Library for Accelerators
Loading...
Searching...
No Matches
special_scaled_modified_bessel_k1.h
Go to the documentation of this file.
1#ifndef INFINI_OPS_BASE_SPECIAL_SCALED_MODIFIED_BESSEL_K1_H_
2#define INFINI_OPS_BASE_SPECIAL_SCALED_MODIFIED_BESSEL_K1_H_
3
4#include "operator.h"
5
6namespace infini::ops::special {
7
8class ScaledModifiedBesselK1 : public Operator<ScaledModifiedBesselK1> {
9 public:
11 : x_shape_{x.shape()},
12 x_strides_{x.strides()},
13 x_type_{x.dtype()},
14 out_shape_{out.shape()},
15 out_strides_{out.strides()},
16 out_type_{out.dtype()},
17 device_index_{out.device().index()} {}
18
19 virtual void operator()(const Tensor x, Tensor out) const = 0;
20
21 protected:
22 Tensor::Shape x_shape_;
23
24 Tensor::Strides x_strides_;
25
26 DataType x_type_;
27
28 Tensor::Shape out_shape_;
29
30 Tensor::Strides out_strides_;
31
32 DataType out_type_;
33
35};
36
37} // namespace infini::ops::special
38
39#endif
Definition generated/include/operator.h:282
Definition special_scaled_modified_bessel_k1.h:8
Tensor::Strides out_strides_
Definition special_scaled_modified_bessel_k1.h:30
Tensor::Strides x_strides_
Definition special_scaled_modified_bessel_k1.h:24
ScaledModifiedBesselK1(const Tensor x, Tensor out)
Definition special_scaled_modified_bessel_k1.h:10
Tensor::Shape x_shape_
Definition special_scaled_modified_bessel_k1.h:22
Tensor::Shape out_shape_
Definition special_scaled_modified_bessel_k1.h:28
virtual void operator()(const Tensor x, Tensor out) const =0
DataType x_type_
Definition special_scaled_modified_bessel_k1.h:26
int device_index_
Definition special_scaled_modified_bessel_k1.h:34
DataType out_type_
Definition special_scaled_modified_bessel_k1.h:32
Definition special_airy_ai.h:6
infini::rt::TensorView Tensor
Definition tensor.h:8