9 #include "ngraph/util.hpp"
33 size_t size()
const {
return m_byte_size; }
34 void* get_ptr(
size_t offset)
const {
return m_aligned_buffer + offset; }
35 void* get_ptr() {
return m_aligned_buffer; }
36 const void* get_ptr()
const {
return m_aligned_buffer; }
40 return reinterpret_cast<T*
>(m_aligned_buffer);
43 const T* get_ptr()
const
45 return reinterpret_cast<const T*
>(m_aligned_buffer);
49 explicit operator T*()
59 char* m_allocated_buffer;
60 char* m_aligned_buffer;
72 "AttributeAdapter<std::shared_ptr<runtime::AlignedBuffer>>", 0};
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:161
Definition: attribute_adapter.hpp:67
Allocates a block of memory on the specified alignment. The actual size of the allocated memory is la...
Definition: aligned_buffer.hpp:20
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16