clDNN
cldnn::layout Struct Reference

Describes memory layout. More...

#include <layout.hpp>

Collaboration diagram for cldnn::layout:

Public Member Functions

 layout (data_types data_type, cldnn::format fmt, tensor size, padding apadding=padding())
 Constructs layout based on data_type and size information described by tensor.
 
 layout (const cldnn_layout &other)
 Construct C++ layout based on C API cldnn_layout.
 
 operator cldnn_layout () const
 Convert to C API cldnn_layout.
 
 layout (const layout &other)=default
 
layoutoperator= (const layout &other)
 
size_t count () const
 Number of elements to be stored in this memory layout.
 
tensor get_buffer_size () const
 Layout size with padding included.
 
tensor get_pitches () const
 
size_t get_linear_offset (tensor element={ 0, 0, 0, 0 }) const
 
size_t get_linear_size () const
 Get aligned linear size calculated as multiplication of all elements.
 
layout with_padding (padding const &padd) const
 Modify padding in layout.
 
size_t bytes_count () const
 Number of bytes needed to store this layout.
 
bool has_fused_format (data_types const &dt, cldnn::format const &fmt) const
 
auto fused_format () const -> decltype(fuse(data_type, format))
 

Public Attributes

data_types data_type
 Data type stored in memory (see. data_types)
 
cldnn::format format
 Format stored in memory (see. format)
 
tensor size
 The size of the memory (excluding padding)
 
padding data_padding
 Explicit padding of the memory.
 

Friends

bool operator== (const layout &lhs, const layout &rhs)
 
bool operator!= (const layout &lhs, const layout &rhs)
 
bool operator< (const layout &lhs, const layout &rhs)
 

Detailed Description

Describes memory layout.

Contains information about data stored in memory.

Definition at line 223 of file layout.hpp.


The documentation for this struct was generated from the following file: