Named concrete tensor view; its aligned backing storage must outlive the session. More...
#include <onnx_session.h>
Data Fields | |
| const char * | name |
| enum onnx_element_type | type |
| size_t | rank |
| int64_t | dimensions [ONNX_RANK_LIMIT] |
| void * | data |
| size_t | bytes |
Detailed Description
Named concrete tensor view; its aligned backing storage must outlive the session.
Definition at line 44 of file onnx_session.h.
Field Documentation
◆ bytes
| size_t onnx_tensor::bytes |
Exact byte count implied by type and concrete dimensions.
Definition at line 50 of file onnx_session.h.
◆ data
| void* onnx_tensor::data |
Aligned caller storage, never freed by the session.
Definition at line 49 of file onnx_session.h.
◆ dimensions
| int64_t onnx_tensor::dimensions[ONNX_RANK_LIMIT] |
Positive concrete extents; unused axes are ignored.
Definition at line 48 of file onnx_session.h.
◆ name
| const char* onnx_tensor::name |
Graph name, copied by session open rather than matched by declaration order.
Definition at line 45 of file onnx_session.h.
◆ rank
| size_t onnx_tensor::rank |
Concrete rank, including zero for a scalar.
Definition at line 47 of file onnx_session.h.
◆ type
| enum onnx_element_type onnx_tensor::type |
Exact numeric storage representation.
Definition at line 46 of file onnx_session.h.
The documentation for this struct was generated from the following file:
- src/onnx_session.h