#include <Status.h>
Definition at line 32 of file Status.h.
◆ Status() [1/2]
nnkit::support::onnx::Status::Status |
( |
| ) |
|
|
inline |
Definition at line 35 of file Status.h.
35 : _status(nullptr)
36 {
37
38 }
◆ Status() [2/2]
nnkit::support::onnx::Status::Status |
( |
OrtStatus * |
status | ) |
|
|
inline |
Definition at line 40 of file Status.h.
40 : _status(status)
41 {
42
43 }
◆ ~Status()
nnkit::support::onnx::Status::~Status |
( |
| ) |
|
|
inline |
Definition at line 45 of file Status.h.
46 {
47 if (_status)
48 {
49 OrtReleaseStatus(_status);
50 }
51 }
◆ isError()
bool nnkit::support::onnx::Status::isError |
( |
void |
| ) |
|
|
inline |
◆ operator=()
Status & nnkit::support::onnx::Status::operator= |
( |
OrtStatus * |
status | ) |
|
|
inline |
Definition at line 53 of file Status.h.
54 {
55 if (_status)
56 {
57 OrtReleaseStatus(_status);
58 }
59 _status = status;
60 return *this;
61 }
◆ throwOnError()
void nnkit::support::onnx::Status::throwOnError |
( |
void |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- compiler/nnkit-onnxrt/support/include/nnkit/support/onnx/Status.h