docs-6.1.2/amd_openvx_extensions/amd_winml/include/vx_ext_winml.h File Reference

docs-6.1.2/amd_openvx_extensions/amd_winml/include/vx_ext_winml.h File Reference#

MIVisionX: docs-6.1.2/amd_openvx_extensions/amd_winml/include/vx_ext_winml.h File Reference
vx_ext_winml.h File Reference

The AMD OpenVX WinML Nodes Extension Library. More...

#include "VX/vx.h"
#include <VX/vx_compatibility.h>
#include <vx_ext_amd.h>

Go to the source code of this file.

Macros

#define dimof(x)   (sizeof(x) / sizeof(x[0]))
 A macro to get the number of elements in an array. More...
 
#define SHARED_PUBLIC   __attribute__((visibility("default")))
 A macro to specify public visibility for shared library symbols.
 

Functions

vx_node vxCreateNodeByStructure (vx_graph graph, vx_enum kernelenum, vx_reference params[], vx_uint32 num)
 Creates a node in a graph using a predefined kernel structure. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtWinMLNode_OnnxToMivisionX (vx_graph graph, vx_scalar modelLocation, vx_scalar inputTensorName, vx_scalar outputTensorName, vx_tensor inputTensor, vx_array setupArray, vx_tensor outputTensor, vx_scalar deviceKind)
 [Graph] Creates a WinML import ONNX Model and run function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtWinMLNode_convertImageToTensor (vx_graph graph, vx_image input, vx_tensor output, vx_scalar a, vx_scalar b, vx_scalar reverse_channel_order)
 [Graph] Creates a WinML convert image to tensor node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtWinMLNode_getTopKLabels (vx_graph graph, vx_tensor prob_tensor, vx_scalar labelFile, vx_scalar output_1, vx_scalar output_2, vx_scalar output_3, vx_scalar output_4, vx_scalar output_5)
 [Graph] Creates a output tensor to Top K labels node. More...
 

Detailed Description

The AMD OpenVX WinML Nodes Extension Library.

Macro Definition Documentation

◆ dimof

#define dimof (   x)    (sizeof(x) / sizeof(x[0]))

A macro to get the number of elements in an array.

Note
[Graph] AMD OpenVX WinML Interop Nodes Extension is only supported on Windows.
Parameters
[in]xThe array whose size is to be determined.
Returns
The number of elements in the array.

Function Documentation

◆ vxCreateNodeByStructure()

vx_node vxCreateNodeByStructure ( vx_graph  graph,
vx_enum  kernelenum,
vx_reference  params[],
vx_uint32  num 
)

Creates a node in a graph using a predefined kernel structure.

Parameters
[in]graphThe handle to the graph.
[in]kernelenumThe enum value representing the kernel to be used.
[in]paramsAn array of parameter references for the kernel.
[in]numThe number of parameters in the array.
Returns
A handle to the created node.