C++ Reference#
2023-06-14
8 min read time
shape#
-
enum migraphx_shape_datatype_t#
An enum to represent the different data type inputs.
Values:
-
enumerator migraphx_shape_tuple_type#
-
enumerator migraphx_shape_bool_type#
-
enumerator migraphx_shape_half_type#
-
enumerator migraphx_shape_float_type#
-
enumerator migraphx_shape_double_type#
-
enumerator migraphx_shape_uint8_type#
-
enumerator migraphx_shape_int8_type#
-
enumerator migraphx_shape_uint16_type#
-
enumerator migraphx_shape_int16_type#
-
enumerator migraphx_shape_int32_type#
-
enumerator migraphx_shape_int64_type#
-
enumerator migraphx_shape_uint32_type#
-
enumerator migraphx_shape_uint64_type#
-
enumerator migraphx_shape_tuple_type#
-
template<class Lens, class Strides>
struct shape : public migraphx::handle_base<># Describe shape of tensor.
A shape consists of a data type, lengths of multi-dimension tensor, and strides
argument#
-
struct argument : public migraphx::handle_base<>#
Arguments to be passed to an migraphx arguments.
An
argument
represents a raw buffer of data with a shape.
target#
-
struct target : public migraphx::handle_base<>#
A target for compilation.
program#
-
struct program_parameter_shapes : public migraphx::handle_base<>#
-
struct program_parameters : public migraphx::handle_base<>#
A class to construct the inputs parameters for a program.
-
struct migraphx_compile_options#
-
struct program : public migraphx::handle_base<>#
A program represents the all computation graphs to be compiled and executed.
quantize#
-
struct quantize_op_names : public migraphx::handle_base<>#
-
inline void migraphx::quantize_fp16(const program &prog, const quantize_op_names &names)#
Quantize program to use fp16.
-
struct quantize_int8_options : public migraphx::handle_base<>#
Options to be passed when quantizing for int8.
Warning
doxygenfunction: Unable to resolve function “migraphx::quantize_int8” with arguments None in doxygen xml output for project “AMD MIGraphX Documentation” from directory: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-amdmigraphx/checkouts/docs-5.2.0/docs/.doxygen/docBin/xml. Potential matches:
- void quantize_int8(const program &prog, const target &ptarget, const quantize_int8_options &options)
- void quantize_int8(program &prog, const target &t, const std::vector<parameter_map> &calibration, const std::vector<std::string> &ins_names = {"dot", "convolution"})
parse_onnx#
-
struct onnx_options : public migraphx::handle_base<>#
Options for parsing onnx options.
-
inline program migraphx::parse_onnx(const char *filename)#
Parse an onnx file into a migraphx program.
-
inline program migraphx::parse_onnx(const char *filename, const migraphx::onnx_options &options)#
Parse an onnx file into a migraphx program.
-
inline program migraphx::parse_onnx_buffer(const std::string &buffer)#
Parse a buffer of memory as an onnx file.
-
inline program migraphx::parse_onnx_buffer(const std::string &buffer, const migraphx::onnx_options &options)#
Parse a buffer of memory as an onnx file.
-
inline program migraphx::parse_onnx_buffer(const void *data, size_t size)#
Parse a buffer of memory as an onnx file.
-
inline program migraphx::parse_onnx_buffer(const void *data, size_t size, const migraphx::onnx_options &options)#
Parse a buffer of memory as an onnx file.
load#
-
struct migraphx_file_options#
Warning
doxygenfunction: Unable to resolve function “migraphx::load” with arguments (const char*, migraphx_file_options) in doxygen xml output for project “AMD MIGraphX Documentation” from directory: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-amdmigraphx/checkouts/docs-5.2.0/docs/.doxygen/docBin/xml. Potential matches:
- program load(const char *filename)
- program load(const char *filename, const file_options &options)
- program load(const std::string &filename, const file_options &options = file_options{})
save#
Warning
doxygenfunction: Unable to resolve function “migraphx::save” with arguments (const program&, const char*, migraphx_file_options) in doxygen xml output for project “AMD MIGraphX Documentation” from directory: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-amdmigraphx/checkouts/docs-5.2.0/docs/.doxygen/docBin/xml. Potential matches:
- void save(const program &p, const char *filename)
- void save(const program &p, const char *filename, const file_options &options)
- void save(const program &p, const std::string &filename, const file_options &options = file_options{})