docs-6.1.2/amd_openvx_extensions/amd_custom/include/vx_amd_custom.h Source File

docs-6.1.2/amd_openvx_extensions/amd_custom/include/vx_amd_custom.h Source File#

MIVisionX: docs-6.1.2/amd_openvx_extensions/amd_custom/include/vx_amd_custom.h Source File
vx_amd_custom.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2015 - 2023 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #ifndef _VX_AMD_CUSTOM_H_
24 #define _VX_AMD_CUSTOM_H_
25 
26 #include <VX/vx.h>
27 
40 {
42 };
43 
48 {
51 
63 VX_API_ENTRY vx_node VX_API_CALL vxCustomLayer(vx_graph graph, vx_tensor inputs, vx_enum function, vx_array custom_parameters, vx_tensor outputs);
64 
65 #endif
VX_API_ENTRY vx_node VX_API_CALL vxCustomLayer(vx_graph graph, vx_tensor inputs, vx_enum function, vx_array custom_parameters, vx_tensor outputs)
[Graph] Creates a Custom Layer Node.
struct _vx_amd_custom_params_t vx_amd_custom_params_t
Input parameters for a convolution operation.
vx_amd_custom_type_e
The type enumeration lists all NN extension types.
Definition: vx_amd_custom.h:40
@ VX_TYPE_CUSTOM_PARAMS
A vx_nn_convolution_params_t.
Definition: vx_amd_custom.h:41
Input parameters for a convolution operation.
Definition: vx_amd_custom.h:48
vx_enum function_name
A VX_TYPE_ENUM of the function name for custom layer enumeration.
Definition: vx_amd_custom.h:49
The top level OpenVX Header.
@ VX_TYPE_USER_STRUCT_START
A user-defined struct base index.
Definition: vx_types.h:367
struct _vx_tensor_t * vx_tensor
The multidimensional data object (Tensor).
Definition: vx_types.h:287
int32_t vx_enum
Sets the standard enumeration type size to be a fixed quantity.
Definition: vx_types.h:152
struct _vx_graph * vx_graph
An opaque reference to a graph.
Definition: vx_types.h:211
struct _vx_node * vx_node
An opaque reference to a kernel node.
Definition: vx_types.h:204
#define VX_API_CALL
Defines calling convention for OpenVX API.
Definition: vx_types.h:56
struct _vx_array * vx_array
The Array Object. Array is a strongly-typed container for other data structures.
Definition: vx_types.h:275