| 1830 | } |
| 1831 | |
| 1832 | extern "C" migraphx_status migraphx_operation_create(migraphx_operation_t* operation, |
| 1833 | const char* name, |
| 1834 | const char* attributes, |
| 1835 | ...) |
| 1836 | { |
| 1837 | va_list vlist; |
| 1838 | va_start(vlist, attributes); |
| 1839 | auto api_error_result = migraphx::try_([&] { |
| 1840 | *operation = object_cast<migraphx_operation_t>( |
| 1841 | allocate<migraphx::operation>(migraphx::create_op((name), (attributes), (vlist)))); |
| 1842 | }); |
| 1843 | va_end(vlist); |
| 1844 | return api_error_result; |
| 1845 | } |
| 1846 | |
| 1847 | extern "C" migraphx_status |
| 1848 | migraphx_operation_name(char* out, size_t out_size, migraphx_operation_t operation) |