Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
common
TensorInfo.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// std
4
#include <cstdint>
5
6
// project
7
#include "
depthai-shared/utility/Serialization.hpp
"
8
9
namespace
dai
{
10
12
struct
TensorInfo
{
13
enum class
StorageOrder
: int {
14
NHWC
= 0x4213,
15
NHCW
= 0x4231,
16
NCHW
= 0x4321,
17
HWC
= 0x213,
18
CHW
= 0x321,
19
WHC
= 0x123,
20
HCW
= 0x231,
21
WCH
= 0x132,
22
CWH
= 0x312,
23
NC
= 0x43,
24
CN
= 0x34,
25
C
= 0x3,
26
H
= 0x2,
27
W
= 0x1,
28
};
29
30
enum class
DataType
: int {
31
FP16
= 0,
// Half precision floating point
32
U8F
= 1,
// Unsigned byte
33
INT
= 2,
// Signed integer (4 byte)
34
FP32
= 3,
// Single precision floating point
35
I8
= 4,
// Signed byte
36
};
37
38
StorageOrder
order
=
StorageOrder::NCHW
;
39
DataType
dataType
=
DataType::FP16
;
40
unsigned
int
numDimensions
= 0;
41
std::vector<unsigned>
dims
;
42
std::vector<unsigned>
strides
;
43
std::string
name
;
44
unsigned
int
offset
= 0;
45
};
46
47
DEPTHAI_SERIALIZE_EXT
(
TensorInfo
, order, dataType, numDimensions, dims, strides, name, offset);
48
49
}
// namespace dai
dai::TensorInfo::offset
unsigned int offset
Definition:
TensorInfo.hpp:44
dai::TensorInfo::StorageOrder::NC
@ NC
dai::TensorInfo::dataType
DataType dataType
Definition:
TensorInfo.hpp:39
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::TensorInfo::StorageOrder::WHC
@ WHC
dai::TensorInfo::StorageOrder
StorageOrder
Definition:
TensorInfo.hpp:13
dai::TensorInfo::DataType
DataType
Definition:
TensorInfo.hpp:30
dai::TensorInfo::DataType::FP16
@ FP16
dai::TensorInfo::StorageOrder::C
@ C
dai::TensorInfo::order
StorageOrder order
Definition:
TensorInfo.hpp:38
dai::TensorInfo::StorageOrder::CWH
@ CWH
dai::TensorInfo::DataType::INT
@ INT
dai::TensorInfo::DataType::FP32
@ FP32
dai::TensorInfo::StorageOrder::WCH
@ WCH
dai::TensorInfo::DataType::I8
@ I8
dai::TensorInfo::dims
std::vector< unsigned > dims
Definition:
TensorInfo.hpp:41
dai::TensorInfo::StorageOrder::HCW
@ HCW
dai::TensorInfo::StorageOrder::CN
@ CN
dai::TensorInfo::StorageOrder::W
@ W
dai::TensorInfo::name
std::string name
Definition:
TensorInfo.hpp:43
dai::TensorInfo::StorageOrder::CHW
@ CHW
dai::TensorInfo::StorageOrder::NCHW
@ NCHW
dai::TensorInfo::StorageOrder::NHCW
@ NHCW
dai::TensorInfo::numDimensions
unsigned int numDimensions
Definition:
TensorInfo.hpp:40
dai::TensorInfo
TensorInfo structure.
Definition:
TensorInfo.hpp:12
Serialization.hpp
dai::TensorInfo::StorageOrder::NHWC
@ NHWC
dai::TensorInfo::strides
std::vector< unsigned > strides
Definition:
TensorInfo.hpp:42
dai::TensorInfo::StorageOrder::H
@ H
dai::TensorInfo::StorageOrder::HWC
@ HWC
dai
Definition:
CameraExposureOffset.hpp:6
dai::TensorInfo::DataType::U8F
@ U8F
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19