docs-6.1.2/amd_openvx_extensions/amd_migraphx/include/vx_amd_migraphx.h Source File

docs-6.1.2/amd_openvx_extensions/amd_migraphx/include/vx_amd_migraphx.h Source File#

MIVisionX: docs-6.1.2/amd_openvx_extensions/amd_migraphx/include/vx_amd_migraphx.h Source File
vx_amd_migraphx.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2021 - 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_MIGRAPHX_H__
24 #define __VX_AMD_MIGRAPHX_H__
25 
26 #include <VX/vx.h>
27 #include <migraphx/migraphx.hpp>
28 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
54  VX_API_ENTRY vx_node VX_API_CALL amdMIGraphXnode(vx_graph graph, const vx_char *path, vx_tensor input, vx_tensor output, vx_bool fp16q = false, vx_bool int8q = false);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
VX_API_ENTRY vx_node VX_API_CALL amdMIGraphXnode(vx_graph graph, const vx_char *path, vx_tensor input, vx_tensor output, vx_bool fp16q=false, vx_bool int8q=false)
[Graph] Creates a MIGrpahX Node.
The top level OpenVX Header.
struct _vx_tensor_t * vx_tensor
The multidimensional data object (Tensor).
Definition: vx_types.h:287
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
char vx_char
An 8 bit ASCII character.
Definition: vx_types.h:70
#define VX_API_CALL
Defines calling convention for OpenVX API.
Definition: vx_types.h:56
vx_enum vx_bool
A formal boolean type with known fixed size.
Definition: vx_types.h:312