tensor_layout.hpp 633 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef TENSOR_LAYOUT_HPP
#define TENSOR_LAYOUT_HPP

namespace ck {
namespace tensor_layout {

struct BaseTensorLayout
{
};

namespace gemm {

struct RowMajor : public BaseTensorLayout
{
};

struct ColumnMajor : public BaseTensorLayout
{
};
} // namespace gemm

namespace convolution {

struct NHWC : public BaseTensorLayout
{
};

struct KYXC : public BaseTensorLayout
{
};

struct NHWK : public BaseTensorLayout
{
};

struct NCHW : public BaseTensorLayout
{
};

struct KCYX : public BaseTensorLayout
{
};

struct NKHW : public BaseTensorLayout
{
};

} // namespace convolution

} // namespace tensor_layout
} // namespace ck
#endif