Skip to content

Commit 93ce6fd

Browse files
backup
1 parent 2e4b4a0 commit 93ce6fd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/api/api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ extern "C" migraphx_status migraphx_get_onnx_operator_name_at_index(const char**
24302430
return api_error_result;
24312431
}
24322432

2433-
extern "C" migraphx_status migraphx_get_onnx_operators_size(std::size_t* out)
2433+
extern "C" migraphx_status migraphx_get_onnx_operators_size(size_t* out)
24342434
{
24352435
auto api_error_result = migraphx::try_([&] { *out = migraphx::get_onnx_operators_size(); });
24362436
return api_error_result;

src/api/include/migraphx/migraphx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ MIGRAPHX_C_EXPORT migraphx_status migraphx_quantize_fp8(migraphx_program_t prog,
662662
MIGRAPHX_C_EXPORT migraphx_status migraphx_get_onnx_operator_name_at_index(const char** out,
663663
size_t index);
664664

665-
MIGRAPHX_C_EXPORT migraphx_status migraphx_get_onnx_operators_size(std::size_t* out);
665+
MIGRAPHX_C_EXPORT migraphx_status migraphx_get_onnx_operators_size(size_t* out);
666666

667667
MIGRAPHX_C_EXPORT migraphx_status migraphx_context_finish(const_migraphx_context_t context);
668668

src/api/include/migraphx/migraphx.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,15 +1643,15 @@ void register_experimental_custom_op(T& obj)
16431643
op.register_op();
16441644
}
16451645

1646-
std::vector<const char *> get_onnx_operators()
1646+
std::vector<std::string> get_onnx_operators()
16471647
{
16481648
auto size = get_onnx_operators_size();
1649-
std::vector<const char *> result(size, "");
1649+
std::vector<std::string> result(size, "");
16501650

16511651
size_t index = 0;
16521652
for(auto &name: result)
16531653
{
1654-
name= get_onnx_operator_name_at_index(index);
1654+
name = get_onnx_operator_name_at_index(index);
16551655
index++;
16561656
}
16571657
return result;

src/api/migraphx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def quantize_fp8_options(h):
517517

518518
api.add_function('migraphx_get_onnx_operators_size',
519519
fname='migraphx::get_onnx_operators_size',
520-
returns='std::size_t')
520+
returns='size_t')
521521

522522

523523

0 commit comments

Comments
 (0)