TensorTypes.h File
Tensor dtype/layout and minimal DLPack-like structs. More...
Included Headers
#include <cstdint>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | dlpack |
Classes Index
| struct | DLDevice |
| struct | DLDataType |
| struct | DLTensor |
| struct | DLManagedTensor |
Description
Tensor dtype/layout and minimal DLPack-like structs.
File Listing
The file content with the documentation metadata removed is:
10namespace simaai::neat {
14namespace dlpack {
16enum class DLDeviceType : int {
17 kDLCPU = 1,
25enum DLDataTypeCode : uint8_t {
31struct DLDataType {
44 uint64_t byte_offset;
47struct DLManagedTensor {
49 void* manager_ctx;
50 void (*deleter)(DLManagedTensor* self);
55enum class TensorDType {
56 UInt8,
57 Int8,
58 UInt16,
59 Int16,
60 Int32,
61 BFloat16,
62 Float32,
63 Float64,
66enum class TensorLayout {
67 Unknown = 0,
68 HWC,
69 CHW,
70 HW,
71 Planar,
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.