RockX  1.0.0
rockx_tensor_util.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * Copyright (c) 2017 - 2019 by Rockchip Corp. All rights reserved.
4 *
5 * The material in this file is confidential and contains trade secrets
6 * of Rockchip Corporation. This is proprietary information owned by
7 * Rockchip Corporation. No part of this work may be disclosed,
8 * reproduced, copied, transmitted, or used in any way for any purpose,
9 * without the express written permission of Rockchip Corporation.
10 *
11 *****************************************************************************/
12 
13 #ifndef _TENSOR_UTIL_H
14 #define _TENSOR_UTIL_H
15 
16 #include "rockx_type.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
28 
35 
42 
47 void rockx_tensor_dump(rockx_tensor_t *tensor);
48 
54 void write_tensor(const char *path, rockx_tensor_t *tensor);
55 
63 
71 
78 
79 #ifdef __cplusplus
80 } //extern "C"
81 #endif
82 
83 #endif //_TENSOR_UTIL_H
rockx_type.h
rockx_tensor_init_from_image
rockx_ret_t rockx_tensor_init_from_image(rockx_image_t *img, rockx_tensor_t *tensor)
rockx_tensor_elems_num
int rockx_tensor_elems_num(rockx_tensor_t *tensor)
rockx_data_type
rockx_data_type
Data Type.
Definition: rockx_type.h:54
write_tensor
void write_tensor(const char *path, rockx_tensor_t *tensor)
rockx_ret_t
rockx_ret_t
Return Value of RockX functions.
Definition: rockx_type.h:36
rockx_tensor_t
Tensor.
Definition: rockx_type.h:75
rockx_tensor_dtype_size
int rockx_tensor_dtype_size(rockx_data_type type)
rockx_tensor_clone
rockx_ret_t rockx_tensor_clone(rockx_tensor_t *tensor, rockx_tensor_t *dst_tensor)
rockx_tensor_dump
void rockx_tensor_dump(rockx_tensor_t *tensor)
rockx_tensor_size
int rockx_tensor_size(rockx_tensor_t *tensor)
rockx_image_t
Image.
Definition: rockx_type.h:122
rockx_tensor_release
rockx_ret_t rockx_tensor_release(rockx_tensor_t *tensor)