File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,10 @@ onnxReleaseGraph(onnxGraph graph) {
151151 * we have in this backend. It should be a subset of ALL_EXT_FUNCTION_LIST
152152 * in onnxifi_ext.h
153153 */
154- const int extension_function_number = 2 ;
154+ const int extension_function_number = 3 ;
155155const char * extension_function_list [] = {"onnxGetExtensionFunctionAddress" ,
156- "onnxSetIOAndRunGraph" };
156+ "onnxSetIOAndRunGraph" ,
157+ "onnxReleaseTraceEvents" };
157158
158159ONNXIFI_PUBLIC ONNXIFI_CHECK_RESULT onnxStatus ONNXIFI_ABI
159160onnxGetExtensionFunctionAddress (
@@ -170,10 +171,14 @@ onnxGetExtensionFunctionAddress(
170171 if (strcmp (name , extension_function_list [i ]) == 0 ) {
171172 switch (i ) {
172173 case 0 :
173- * function = & onnxGetExtensionFunctionAddress ;
174+ * function =
175+ (onnxExtensionFunctionPointer )& onnxGetExtensionFunctionAddress ;
174176 break ;
175177 case 1 :
176- * function = & onnxSetIOAndRunGraph ;
178+ * function = (onnxExtensionFunctionPointer )& onnxSetIOAndRunGraph ;
179+ break ;
180+ case 2 :
181+ * function = (onnxExtensionFunctionPointer )& onnxReleaseTraceEvents ;
177182 break ;
178183 }
179184 }
Original file line number Diff line number Diff line change @@ -111,7 +111,12 @@ typedef ONNXIFI_CHECK_RESULT onnxStatus
111111 const onnxTensorDescriptorV1 * inputDescriptors ,
112112 uint32_t outputsCount ,
113113 const onnxTensorDescriptorV1 * outputDescriptors ,
114- onnxMemoryFenceV1 * outputFence );
114+ onnxMemoryFenceV1 * outputFence ,
115+ onnxTraceEventList * traceEvents );
116+
117+ typedef ONNXIFI_CHECK_RESULT onnxStatus
118+ (ONNXIFI_ABI * onnxReleaseTraceEventsFunction )(
119+ onnxTraceEventList * traceEvents );
115120
116121/**
117122 * A combination of onnxSetIO and onnxRunGraph, functionally equals to first run
You can’t perform that action at this time.
0 commit comments