Go to the source code of this file.
◆ rockx_tensor_clone()
Clone a Tensor
- Parameters
-
tensor | [in] Tensor to clone |
dst_tensor | [out] Cloned Tensor |
- Returns
- rockx_ret_t
◆ rockx_tensor_dtype_size()
Get Size of Data Type
- Parameters
-
- Returns
- size of data type
◆ rockx_tensor_dump()
Dump Tensor Info
- Parameters
-
◆ rockx_tensor_elems_num()
Get Tensor Elements Number
- Parameters
-
- Returns
- Number of tensor elements
◆ rockx_tensor_init_from_image()
Initial a Tensor From Image
- Parameters
-
img | [in] Input image |
tensor | [out] Initialed Tensor |
- Returns
- rockx_ret_t
◆ rockx_tensor_release()
Release Data Buffer of Tensor
- Parameters
-
tensor | [in] Tensor to release |
- Returns
- rockx_ret_t
◆ rockx_tensor_size()
Get Tensor Data Buffer Size
- Parameters
-
- Returns
- Size of tensor data buffer
◆ write_tensor()
Write Tensor to File
- Parameters
-
path | [in] File path to Write |
tensor | [in] Tensor to Write |