|
virtual | ~Blob () |
| Blob virtual destructor.
|
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> |
bool | is () noexcept |
| Checks if the Blob object can be cast to the type T*. More...
|
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> |
bool | is () const noexcept |
| Checks if the Blob object can be cast to the type const T*. More...
|
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> |
T * | as () noexcept |
| Casts this Blob object to the type T*. More...
|
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0> |
const T * | as () const noexcept |
| Casts this Blob object to the type const T*. More...
|
|
| Blob (const TensorDesc &tensorDesc) |
| Constructor. Creates an empty Blob object with the specified precision. More...
|
|
virtual const TensorDesc & | getTensorDesc () const noexcept |
| Returns the tensor description.
|
|
virtual TensorDesc & | getTensorDesc () noexcept |
| Returns the tensor description.
|
|
virtual size_t | size () const noexcept |
| By default, returns the total number of elements (a product of all the dims or 1 for scalar) More...
|
|
virtual size_t | byteSize () const noexcept |
| Returns the size of the current Blob in bytes.
|
|
virtual size_t | element_size () const noexcept=0 |
| Returns the number of bytes per element. More...
|
|
virtual void | allocate () noexcept=0 |
| Allocates memory to store the data. More...
|
|
virtual bool | deallocate () noexcept=0 |
| Releases previously allocated data. More...
|
|
virtual LockedMemory< void > | buffer () noexcept=0 |
| Gets access to the allocated memory. More...
|
|
virtual LockedMemory< const void > | cbuffer () const noexcept=0 |
| Gets read-only access to the allocated memory. More...
|
|
This class represents a universal container in the Inference Engine.
- Note
- Each Blob implementation must be derived from this Blob class directly or indirectly
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0>
T* InferenceEngine::Blob::as |
( |
| ) |
|
|
inlinenoexcept |
Casts this Blob object to the type T*.
Use InferenceEngine::as() to operate with shared Blob objects instead of raw pointers
- Template Parameters
-
T | Type to cast to. Must represent a class derived from the Blob |
- Returns
- Raw pointer to the object of the type T or nullptr on error
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0>
const T* InferenceEngine::Blob::as |
( |
| ) |
const |
|
inlinenoexcept |
Casts this Blob object to the type const T*.
Use InferenceEngine::as() to operate with shared Blob objects instead of raw pointers
- Template Parameters
-
T | Type to cast to. Must represent a class derived from the Blob |
- Returns
- Raw pointer to the object of the type const T or nullptr on error
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0>
bool InferenceEngine::Blob::is |
( |
| ) |
|
|
inlinenoexcept |
Checks if the Blob object can be cast to the type T*.
- Template Parameters
-
T | Type to be checked. Must represent a class derived from the Blob |
- Returns
- true if this object can be dynamically cast to the type T*. Otherwise, false
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&!std::is_reference< T >::value, int >::type = 0, typename std::enable_if< std::is_base_of< Blob, T >::value, int >::type = 0>
bool InferenceEngine::Blob::is |
( |
| ) |
const |
|
inlinenoexcept |
Checks if the Blob object can be cast to the type const T*.
- Template Parameters
-
T | Type to be checked. Must represent a class derived from the Blob |
- Returns
- true if this object can be dynamically cast to the type const T*. Otherwise, false