An extension for public Blob API allowing to create blobs in uniform manner. More...
Functions | |
| InferenceEngine::Blob::Ptr | make_blob_with_precision (const InferenceEngine::TensorDesc &desc) |
| Creates Blob::Ptr with precision. More... | |
| InferenceEngine::Blob::Ptr | make_blob_with_precision (const InferenceEngine::TensorDesc &desc, void *ptr) |
| Makes a blob with precision. More... | |
| InferenceEngine::Blob::Ptr | make_blob_with_precision (const InferenceEngine::TensorDesc &desc, const std::shared_ptr< InferenceEngine::IAllocator > &alloc) |
| Makes a blob with precision. More... | |
| InferenceEngine::Blob::Ptr | make_plain_blob (InferenceEngine::Precision prec, const InferenceEngine::SizeVector dims) |
| Creates a plain Blob::Ptr. More... | |
| template<class... Args> | |
| InferenceEngine::Blob::Ptr | make_blob_with_precision (InferenceEngine::Precision precision, Args &&... args) |
| Creates Blob::Ptr with precision. More... | |
| template<typename T > | |
| void | CopyVectorToBlob (const InferenceEngine::Blob::Ptr outputBlob, const std::vector< T > &inputVector) |
| Copy data from std::vector to Blob. More... | |
| void | InferenceEngine::blob_copy (Blob::Ptr src, Blob::Ptr dst) |
| Copies data with taking into account layout and precision params. More... | |
| int | ie_memcpy (void *dest, size_t destsz, void const *src, size_t count) |
| Copies bytes between buffers with security enhancements Copies count bytes from src to dest. If the source and destination overlap, the behavior is undefined. More... | |
An extension for public Blob API allowing to create blobs in uniform manner.
| void CopyVectorToBlob | ( | const InferenceEngine::Blob::Ptr | outputBlob, |
| const std::vector< T > & | inputVector | ||
| ) |
Copy data from std::vector to Blob.
| T | type of data in std::vector |
| outputBlob | An output blob to copy to |
| inputVector | An input std::vector to copy from |
| int ie_memcpy | ( | void * | dest, |
| size_t | destsz, | ||
| void const * | src, | ||
| size_t | count | ||
| ) |
Copies bytes between buffers with security enhancements Copies count bytes from src to dest. If the source and destination overlap, the behavior is undefined.
| dest | A Pointer to the object to copy to |
| destsz | A max number of bytes to modify in the destination (typically the size of the destination object) |
| src | A pointer to the object to copy from |
| count | A number of bytes to copy |
| InferenceEngine::Blob::Ptr make_blob_with_precision | ( | const InferenceEngine::TensorDesc & | desc | ) |
Creates Blob::Ptr with precision.
| [in] | desc | The TensorDesc object |
| InferenceEngine::Blob::Ptr make_blob_with_precision | ( | const InferenceEngine::TensorDesc & | desc, |
| const std::shared_ptr< InferenceEngine::IAllocator > & | alloc | ||
| ) |
Makes a blob with precision.
| [in] | desc | The description |
| [in] | alloc | The IAllocator object |
| InferenceEngine::Blob::Ptr make_blob_with_precision | ( | const InferenceEngine::TensorDesc & | desc, |
| void * | ptr | ||
| ) |
Makes a blob with precision.
| [in] | desc | The TensorDesc object |
| ptr | The pointer to a raw memory |
| InferenceEngine::Blob::Ptr make_blob_with_precision | ( | InferenceEngine::Precision | precision, |
| Args &&... | args | ||
| ) |
Creates Blob::Ptr with precision.
| [in] | precision | The precision |
| args | The arguments |
| Args | Variadic template arguments |
| InferenceEngine::Blob::Ptr make_plain_blob | ( | InferenceEngine::Precision | prec, |
| const InferenceEngine::SizeVector | dims | ||
| ) |
Creates a plain Blob::Ptr.
| [in] | prec | The Precision value |
| [in] | dims | The dims |