@@ -289,6 +289,11 @@ static void quantize_fp8_wrap(program& prog, const target& t, quantize_fp8_optio
289289 migraphx::quantize_fp8 (prog, t, options.calibration );
290290}
291291
292+ static std::vector<std::string> get_supported_onnx_operators ()
293+ {
294+ return migraphx::get_onnx_operators ();
295+ }
296+
292297#ifdef __clang__
293298#pragma clang diagnostic push
294299#pragma clang diagnostic ignored "-Wformat-nonliteral"
@@ -733,6 +738,17 @@ struct migraphx_quantize_fp8_options
733738 migraphx::quantize_fp8_options object;
734739};
735740
741+ extern " C" struct migraphx_get_supported_onnx_operators ;
742+ struct migraphx_get_supported_onnx_operators
743+ {
744+ template <class ... Ts>
745+ migraphx_get_supported_onnx_operators (Ts&&... xs)
746+ : object(std::forward<Ts>(xs)...) // NOLINT(readability-redundant-member-init)
747+ {
748+ }
749+ migraphx::get_supported_onnx_operators object;
750+ };
751+
736752extern " C" struct migraphx_context ;
737753struct migraphx_context
738754{
@@ -2418,6 +2434,32 @@ extern "C" migraphx_status migraphx_quantize_fp8(migraphx_program_t prog,
24182434 return api_error_result;
24192435}
24202436
2437+ extern " C" migraphx_status migraphx_get_supported_onnx_operators_destroy (
2438+ migraphx_get_supported_onnx_operators_t get_supported_onnx_operators)
2439+ {
2440+ auto api_error_result = migraphx::try_ ([&] { destroy ((get_supported_onnx_operators)); });
2441+ return api_error_result;
2442+ }
2443+
2444+ extern " C" migraphx_status
2445+ migraphx_get_supported_onnx_operators_assign_to (migraphx_get_supported_onnx_operators_t output,
2446+ const_migraphx_get_supported_onnx_operators_t input)
2447+ {
2448+ auto api_error_result = migraphx::try_ ([&] { *output = *input; });
2449+ return api_error_result;
2450+ }
2451+
2452+ extern " C" migraphx_status migraphx_get_supported_onnx_operators_create (
2453+ migraphx_get_supported_onnx_operators_t * get_supported_onnx_operators)
2454+ {
2455+ auto api_error_result = migraphx::try_ ([&] {
2456+ *get_supported_onnx_operators = object_cast<migraphx_get_supported_onnx_operators_t >(
2457+ allocate<migraphx::get_supported_onnx_operators>(
2458+ migraphx::get_supported_onnx_operators ()));
2459+ });
2460+ return api_error_result;
2461+ }
2462+
24212463extern " C" migraphx_status migraphx_context_finish (const_migraphx_context_t context)
24222464{
24232465 auto api_error_result = migraphx::try_ ([&] {
0 commit comments