InfiniOps
Operator Library for Accelerators
Loading...
Searching...
No Matches
ormqr.h
Go to the documentation of this file.
1#ifndef INFINI_OPS_BASE_ORMQR_H_
2#define INFINI_OPS_BASE_ORMQR_H_
3
4#include "operator.h"
5
6namespace infini::ops {
7
8class Ormqr : public Operator<Ormqr> {
9 public:
10 Ormqr(const Tensor input, const Tensor input2, const Tensor input3,
11 const bool left, const bool transpose, Tensor out)
12 : input_shape_{input.shape()},
13 input_strides_{input.strides()},
14 input_type_{input.dtype()},
15 input2_shape_{input2.shape()},
16 input2_strides_{input2.strides()},
17 input2_type_{input2.dtype()},
18 input3_shape_{input3.shape()},
19 input3_strides_{input3.strides()},
20 input3_type_{input3.dtype()},
21 out_shape_{out.shape()},
22 out_strides_{out.strides()},
23 out_type_{out.dtype()},
24 left_{left},
25 transpose_{transpose},
26 device_index_{out.device().index()} {}
27
28 virtual void operator()(const Tensor input, const Tensor input2,
29 const Tensor input3, const bool left,
30 const bool transpose, Tensor out) const = 0;
31
32 protected:
33 Tensor::Shape input_shape_;
34
35 Tensor::Strides input_strides_;
36
37 DataType input_type_;
38
39 Tensor::Shape input2_shape_;
40
41 Tensor::Strides input2_strides_;
42
43 DataType input2_type_;
44
45 Tensor::Shape input3_shape_;
46
47 Tensor::Strides input3_strides_;
48
49 DataType input3_type_;
50
51 Tensor::Shape out_shape_;
52
53 Tensor::Strides out_strides_;
54
55 DataType out_type_;
56
57 bool left_{};
58
59 bool transpose_{};
60
62};
63
64} // namespace infini::ops
65
66#endif
Definition generated/include/operator.h:282
Definition ormqr.h:8
Tensor::Shape out_shape_
Definition ormqr.h:51
DataType input2_type_
Definition ormqr.h:43
DataType out_type_
Definition ormqr.h:55
Tensor::Strides out_strides_
Definition ormqr.h:53
Tensor::Shape input2_shape_
Definition ormqr.h:39
Tensor::Strides input2_strides_
Definition ormqr.h:41
DataType input3_type_
Definition ormqr.h:49
Tensor::Shape input_shape_
Definition ormqr.h:33
bool left_
Definition ormqr.h:57
bool transpose_
Definition ormqr.h:59
DataType input_type_
Definition ormqr.h:37
Ormqr(const Tensor input, const Tensor input2, const Tensor input3, const bool left, const bool transpose, Tensor out)
Definition ormqr.h:10
Tensor::Shape input3_shape_
Definition ormqr.h:45
Tensor::Strides input_strides_
Definition ormqr.h:35
Tensor::Strides input3_strides_
Definition ormqr.h:47
virtual void operator()(const Tensor input, const Tensor input2, const Tensor input3, const bool left, const bool transpose, Tensor out) const =0
int device_index_
Definition ormqr.h:61
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8