InfiniOps
Operator Library for Accelerators
Loading...
Searching...
No Matches
linalg_det.h
Go to the documentation of this file.
1#ifndef INFINI_OPS_BASE_LINALG_DET_H_
2#define INFINI_OPS_BASE_LINALG_DET_H_
3
4#include "operator.h"
5
6namespace infini::ops::linalg {
7
8class Det : public Operator<Det> {
9 public:
10 Det(const Tensor A, Tensor out)
11 : A_shape_{A.shape()},
12 A_strides_{A.strides()},
13 A_type_{A.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 A, Tensor out) const = 0;
20
21 protected:
22 Tensor::Shape A_shape_;
23
24 Tensor::Strides A_strides_;
25
26 DataType A_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::linalg
38
39#endif
Definition generated/include/operator.h:282
Definition linalg_det.h:8
int device_index_
Definition linalg_det.h:34
DataType out_type_
Definition linalg_det.h:32
Tensor::Strides A_strides_
Definition linalg_det.h:24
Tensor::Strides out_strides_
Definition linalg_det.h:30
Tensor::Shape A_shape_
Definition linalg_det.h:22
virtual void operator()(const Tensor A, Tensor out) const =0
Det(const Tensor A, Tensor out)
Definition linalg_det.h:10
DataType A_type_
Definition linalg_det.h:26
Tensor::Shape out_shape_
Definition linalg_det.h:28
Definition linalg_cholesky.h:6
infini::rt::TensorView Tensor
Definition tensor.h:8