|
IEStatusCode | ie_blob_make_memory (const tensor_desc_t *tensorDesc, ie_blob_t **blob) |
| Creates a blob with the specified dimensions, layout and to allocate memory. More...
|
|
IEStatusCode | ie_blob_make_memory_from_preallocated (const tensor_desc_t *tensorDesc, void *ptr, size_t size, ie_blob_t **blob) |
| Creates a blob with the given tensor descriptor from the pointer to the pre-allocated memory. More...
|
|
IEStatusCode | ie_blob_make_memory_with_roi (const ie_blob_t *inputBlob, const roi_t *roi, ie_blob_t **blob) |
| Creates a blob describing given roi_t instance based on the given blob with pre-allocated memory. More...
|
|
IEStatusCode | ie_blob_size (ie_blob_t *blob, int *size_result) |
| Gets the total number of elements, which is a product of all the dimensions. More...
|
|
IEStatusCode | ie_blob_byte_size (ie_blob_t *blob, int *bsize_result) |
| Gets the size of the current Blob in bytes. More...
|
|
IEStatusCode | ie_blob_deallocate (ie_blob_t **blob) |
| Releases previously allocated data. More...
|
|
IEStatusCode | ie_blob_get_buffer (const ie_blob_t *blob, ie_blob_buffer_t *blob_buffer) |
| Gets access to the allocated memory . More...
|
|
IEStatusCode | ie_blob_get_cbuffer (const ie_blob_t *blob, ie_blob_buffer_t *blob_cbuffer) |
| Gets read-only access to the allocated memory. More...
|
|
IEStatusCode | ie_blob_get_dims (const ie_blob_t *blob, dimensions_t *dims_result) |
| Gets dimensions of blob's tensor. More...
|
|
IEStatusCode | ie_blob_get_layout (const ie_blob_t *blob, layout_e *layout_result) |
| Gets layout of blob's tensor. More...
|
|
IEStatusCode | ie_blob_get_precision (const ie_blob_t *blob, precision_e *prec_result) |
| Gets precision of blob's tensor. More...
|
|
Set of functions allowing to research memory from infer requests or make new memory objects to be passed to InferRequests.
§ ie_blob_byte_size()
IEStatusCode ie_blob_byte_size |
( |
ie_blob_t * |
blob, |
|
|
int * |
bsize_result |
|
) |
| |
Gets the size of the current Blob in bytes.
- Parameters
-
blob | A pointer to the blob. |
bsize_result | The size of the current blob in bytes. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_deallocate()
Releases previously allocated data.
- Parameters
-
blob | A pointer to the blob to free memory. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_get_buffer()
Gets access to the allocated memory .
- Parameters
-
blob | A pointer to the blob. |
blob_buffer | A pointer to the copied data from the given blob. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_get_cbuffer()
Gets read-only access to the allocated memory.
- Parameters
-
blob | A pointer to the blob. |
blob_cbuffer | A pointer to the coped data from the given pointer to the blob and the data is read-only. |
- Returns
- Status code of the operation: OK(0) for success
§ ie_blob_get_dims()
Gets dimensions of blob's tensor.
- Parameters
-
blob | A pointer to the blob. |
dims_result | A pointer to the dimensions of blob's tensor. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_get_layout()
Gets layout of blob's tensor.
- Parameters
-
blob | A pointer to the blob. |
layout_result | A pointer to the layout of blob's tensor. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_get_precision()
Gets precision of blob's tensor.
- Parameters
-
blob | A pointer to the blob. |
prec_result | A pointer to the precision of blob's tensor. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_make_memory()
Creates a blob with the specified dimensions, layout and to allocate memory.
- Parameters
-
tensorDesc | Tensor descriptor for Blob creation. |
blob | A pointer to the newly created blob. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_make_memory_from_preallocated()
IEStatusCode ie_blob_make_memory_from_preallocated |
( |
const tensor_desc_t * |
tensorDesc, |
|
|
void * |
ptr, |
|
|
size_t |
size, |
|
|
ie_blob_t ** |
blob |
|
) |
| |
Creates a blob with the given tensor descriptor from the pointer to the pre-allocated memory.
- Parameters
-
tensorDesc | Tensor descriptor for Blob creation. |
ptr | Pointer to the pre-allocated memory. |
size | Length of the pre-allocated array. |
blob | A pointer to the newly created blob. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_make_memory_with_roi()
IEStatusCode ie_blob_make_memory_with_roi |
( |
const ie_blob_t * |
inputBlob, |
|
|
const roi_t * |
roi, |
|
|
ie_blob_t ** |
blob |
|
) |
| |
Creates a blob describing given roi_t instance based on the given blob with pre-allocated memory.
- Parameters
-
inputBlob | original blob with pre-allocated memory. |
roi | A roi_tinstance inside of the original blob. |
blob | A pointer to the newly created blob. |
- Returns
- Status code of the operation: OK(0) for success.
§ ie_blob_size()
IEStatusCode ie_blob_size |
( |
ie_blob_t * |
blob, |
|
|
int * |
size_result |
|
) |
| |
Gets the total number of elements, which is a product of all the dimensions.
- Parameters
-
blob | A pointer to the blob. |
size_result | The total number of elements. |
- Returns
- Status code of the operation: OK(0) for success.