GraphAPI

GraphAPI#

MIOpen: GraphAPI
GraphAPI

Enumerations

enum  miopenBackendDescriptorType_t {
  MIOPEN_BACKEND_CONVOLUTION_DESCRIPTOR ,
  MIOPEN_BACKEND_ENGINE_DESCRIPTOR ,
  MIOPEN_BACKEND_ENGINECFG_DESCRIPTOR ,
  MIOPEN_BACKEND_ENGINEHEUR_DESCRIPTOR ,
  MIOPEN_BACKEND_EXECUTION_PLAN_DESCRIPTOR ,
  MIOPEN_BACKEND_INTERMEDIATE_INFO_DESCRIPTOR ,
  MIOPEN_BACKEND_KNOB_CHOICE_DESCRIPTOR ,
  MIOPEN_BACKEND_KNOB_INFO_DESCRIPTOR ,
  MIOPEN_BACKEND_LAYOUT_INFO_DESCRIPTOR ,
  MIOPEN_BACKEND_MATMUL_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_CONCAT_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_CONVOLUTION_BACKWARD_DATA_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_CONVOLUTION_BACKWARD_FILTER_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_CONVOLUTION_FORWARD_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_GEN_STATS_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_MATMUL_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_NORM_BACKWARD_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_NORM_FORWARD_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_POINTWISE_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_REDUCTION_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_RESAMPLE_BWD_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_RESAMPLE_FWD_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_RNG_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATION_SIGNAL_DESCRIPTOR ,
  MIOPEN_BACKEND_OPERATIONGRAPH_DESCRIPTOR ,
  MIOPEN_BACKEND_POINTWISE_DESCRIPTOR ,
  MIOPEN_BACKEND_REDUCTION_DESCRIPTOR ,
  MIOPEN_BACKEND_RESAMPLE_DESCRIPTOR ,
  MIOPEN_BACKEND_RNG_DESCRIPTOR ,
  MIOPEN_BACKEND_TENSOR_DESCRIPTOR ,
  MIOPEN_BACKEND_VARIANT_PACK_DESCRIPTOR
}
 Descriptor type. More...
 
enum  miopenBackendAttributeName_t {
  MIOPEN_ATTR_POINTWISE_MODE = 0 ,
  MIOPEN_ATTR_POINTWISE_MATH_PREC = 1 ,
  MIOPEN_ATTR_POINTWISE_NAN_PROPAGATION = 2 ,
  MIOPEN_ATTR_POINTWISE_RELU_LOWER_CLIP = 3 ,
  MIOPEN_ATTR_POINTWISE_RELU_UPPER_CLIP = 4 ,
  MIOPEN_ATTR_POINTWISE_RELU_LOWER_CLIP_SLOPE = 5 ,
  MIOPEN_ATTR_POINTWISE_ELU_ALPHA = 6 ,
  MIOPEN_ATTR_POINTWISE_SOFTPLUS_BETA = 7 ,
  MIOPEN_ATTR_POINTWISE_SWISH_BETA = 8 ,
  MIOPEN_ATTR_POINTWISE_AXIS = 9 ,
  MIOPEN_ATTR_CONVOLUTION_COMP_TYPE = 100 ,
  MIOPEN_ATTR_CONVOLUTION_CONV_MODE = 101 ,
  MIOPEN_ATTR_CONVOLUTION_DILATIONS = 102 ,
  MIOPEN_ATTR_CONVOLUTION_FILTER_STRIDES = 103 ,
  MIOPEN_ATTR_CONVOLUTION_POST_PADDINGS = 104 ,
  MIOPEN_ATTR_CONVOLUTION_PRE_PADDINGS = 105 ,
  MIOPEN_ATTR_CONVOLUTION_SPATIAL_DIMS = 106 ,
  MIOPEN_ATTR_ENGINEHEUR_MODE = 200 ,
  MIOPEN_ATTR_ENGINEHEUR_OPERATION_GRAPH = 201 ,
  MIOPEN_ATTR_ENGINEHEUR_RESULTS = 202 ,
  MIOPEN_ATTR_ENGINEHEUR_SM_COUNT_TARGET = 203 ,
  MIOPEN_ATTR_ENGINECFG_ENGINE = 300 ,
  MIOPEN_ATTR_ENGINECFG_INTERMEDIATE_INFO = 301 ,
  MIOPEN_ATTR_ENGINECFG_KNOB_CHOICES = 302 ,
  MIOPEN_ATTR_EXECUTION_PLAN_HANDLE = 400 ,
  MIOPEN_ATTR_EXECUTION_PLAN_ENGINE_CONFIG = 401 ,
  MIOPEN_ATTR_EXECUTION_PLAN_WORKSPACE_SIZE = 402 ,
  MIOPEN_ATTR_EXECUTION_PLAN_COMPUTED_INTERMEDIATE_UIDS = 403 ,
  MIOPEN_ATTR_EXECUTION_PLAN_RUN_ONLY_INTERMEDIATE_UIDS = 404 ,
  MIOPEN_ATTR_EXECUTION_PLAN_JSON_REPRESENTATION = 405 ,
  MIOPEN_ATTR_INTERMEDIATE_INFO_UNIQUE_ID = 500 ,
  MIOPEN_ATTR_INTERMEDIATE_INFO_SIZE = 501 ,
  MIOPEN_ATTR_INTERMEDIATE_INFO_DEPENDENT_DATA_UIDS = 502 ,
  MIOPEN_ATTR_INTERMEDIATE_INFO_DEPENDENT_ATTRIBUTES = 503 ,
  MIOPEN_ATTR_KNOB_CHOICE_KNOB_TYPE = 600 ,
  MIOPEN_ATTR_KNOB_CHOICE_KNOB_VALUE = 601 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_ALPHA = 700 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_BETA = 701 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_CONV_DESC = 702 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_W = 703 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_X = 704 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_Y = 705 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_ALPHA = 706 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_BETA = 707 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_CONV_DESC = 708 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_W = 709 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_DX = 710 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_DY = 711 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_ALPHA = 712 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_BETA = 713 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_CONV_DESC = 714 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_DW = 715 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_X = 716 ,
  MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_DY = 717 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_PW_DESCRIPTOR = 750 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_XDESC = 751 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_BDESC = 752 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_YDESC = 753 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA1 = 754 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA2 = 755 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_DXDESC = 756 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_DYDESC = 757 ,
  MIOPEN_ATTR_OPERATION_POINTWISE_TDESC = 758 ,
  MIOPEN_ATTR_OPERATION_GENSTATS_MODE = 770 ,
  MIOPEN_ATTR_OPERATION_GENSTATS_MATH_PREC = 771 ,
  MIOPEN_ATTR_OPERATION_GENSTATS_XDESC = 772 ,
  MIOPEN_ATTR_OPERATION_GENSTATS_SUMDESC = 773 ,
  MIOPEN_ATTR_OPERATION_GENSTATS_SQSUMDESC = 774 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_STATS_MODE = 780 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_MATH_PREC = 781 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SUM_DESC = 782 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SQ_SUM_DESC = 783 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_SCALE_DESC = 784 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_BIAS_DESC = 785 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_PREV_RUNNING_MEAN_DESC = 786 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_PREV_RUNNING_VAR_DESC = 787 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_MEAN_DESC = 788 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_VAR_DESC = 789 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_SAVED_MEAN_DESC = 790 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_SAVED_INV_STD_DESC = 791 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_EQ_SCALE_DESC = 792 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_EQ_BIAS_DESC = 793 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_ACCUM_COUNT_DESC = 794 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_EPSILON_DESC = 795 ,
  MIOPEN_ATTR_OPERATION_BN_FINALIZE_EXP_AVERATE_FACTOR_DESC = 796 ,
  MIOPEN_ATTR_OPERATIONGRAPH_HANDLE = 800 ,
  MIOPEN_ATTR_OPERATIONGRAPH_OPS = 801 ,
  MIOPEN_ATTR_OPERATIONGRAPH_ENGINE_GLOBAL_COUNT = 802 ,
  MIOPEN_ATTR_TENSOR_BYTE_ALIGNMENT = 900 ,
  MIOPEN_ATTR_TENSOR_DATA_TYPE = 901 ,
  MIOPEN_ATTR_TENSOR_DIMENSIONS = 902 ,
  MIOPEN_ATTR_TENSOR_STRIDES = 903 ,
  MIOPEN_ATTR_TENSOR_VECTOR_COUNT = 904 ,
  MIOPEN_ATTR_TENSOR_VECTORIZED_DIMENSION = 905 ,
  MIOPEN_ATTR_TENSOR_UNIQUE_ID = 906 ,
  MIOPEN_ATTR_TENSOR_IS_VIRTUAL = 907 ,
  MIOPEN_ATTR_TENSOR_IS_BY_VALUE = 908 ,
  MIOPEN_ATTR_TENSOR_REORDERING_MODE = 909 ,
  MIOPEN_ATTR_TENSOR_RAGGED_OFFSET_DESC = 910 ,
  MIOPEN_ATTR_VARIANT_PACK_UNIQUE_IDS = 1000 ,
  MIOPEN_ATTR_VARIANT_PACK_DATA_POINTERS = 1001 ,
  MIOPEN_ATTR_VARIANT_PACK_INTERMEDIATES = 1002 ,
  MIOPEN_ATTR_VARIANT_PACK_WORKSPACE = 1003 ,
  MIOPEN_ATTR_LAYOUT_INFO_TENSOR_UID = 1100 ,
  MIOPEN_ATTR_LAYOUT_INFO_TYPES = 1101 ,
  MIOPEN_ATTR_KNOB_INFO_TYPE = 1200 ,
  MIOPEN_ATTR_KNOB_INFO_MAXIMUM_VALUE = 1201 ,
  MIOPEN_ATTR_KNOB_INFO_MINIMUM_VALUE = 1202 ,
  MIOPEN_ATTR_KNOB_INFO_STRIDE = 1203 ,
  MIOPEN_ATTR_ENGINE_OPERATION_GRAPH = 1300 ,
  MIOPEN_ATTR_ENGINE_GLOBAL_INDEX = 1301 ,
  MIOPEN_ATTR_ENGINE_KNOB_INFO = 1302 ,
  MIOPEN_ATTR_ENGINE_NUMERICAL_NOTE = 1303 ,
  MIOPEN_ATTR_ENGINE_LAYOUT_INFO = 1304 ,
  MIOPEN_ATTR_ENGINE_BEHAVIOR_NOTE = 1305 ,
  MIOPEN_ATTR_ENGINE_SM_COUNT_TARGET = 1306 ,
  MIOPEN_ATTR_MATMUL_COMP_TYPE = 1500 ,
  MIOPEN_ATTR_MATMUL_PADDING_VALUE = 1501 ,
  MIOPEN_ATTR_OPERATION_MATMUL_ADESC = 1520 ,
  MIOPEN_ATTR_OPERATION_MATMUL_BDESC = 1521 ,
  MIOPEN_ATTR_OPERATION_MATMUL_CDESC = 1522 ,
  MIOPEN_ATTR_OPERATION_MATMUL_DESC = 1523 ,
  MIOPEN_ATTR_OPERATION_MATMUL_IRREGULARLY_STRIDED_BATCH_COUNT = 1524 ,
  MIOPEN_ATTR_OPERATION_MATMUL_GEMM_M_OVERRIDE_DESC = 1525 ,
  MIOPEN_ATTR_OPERATION_MATMUL_GEMM_N_OVERRIDE_DESC = 1526 ,
  MIOPEN_ATTR_OPERATION_MATMUL_GEMM_K_OVERRIDE_DESC = 1527 ,
  MIOPEN_ATTR_REDUCTION_OPERATOR = 1600 ,
  MIOPEN_ATTR_REDUCTION_COMP_TYPE = 1601 ,
  MIOPEN_ATTR_OPERATION_REDUCTION_XDESC = 1610 ,
  MIOPEN_ATTR_OPERATION_REDUCTION_YDESC = 1611 ,
  MIOPEN_ATTR_OPERATION_REDUCTION_DESC = 1612 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_MATH_PREC = 1620 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_MEAN_DESC = 1621 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_INVSTD_DESC = 1622 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_BN_SCALE_DESC = 1623 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_X_DESC = 1624 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DY_DESC = 1625 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DBN_SCALE_DESC = 1626 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DBN_BIAS_DESC = 1627 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_DY_SCALE_DESC = 1628 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_X_SCALE_DESC = 1629 ,
  MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_BIAS = 1630 ,
  MIOPEN_ATTR_RESAMPLE_MODE = 1700 ,
  MIOPEN_ATTR_RESAMPLE_COMP_TYPE = 1701 ,
  MIOPEN_ATTR_RESAMPLE_SPATIAL_DIMS = 1702 ,
  MIOPEN_ATTR_RESAMPLE_POST_PADDINGS = 1703 ,
  MIOPEN_ATTR_RESAMPLE_PRE_PADDINGS = 1704 ,
  MIOPEN_ATTR_RESAMPLE_STRIDES = 1705 ,
  MIOPEN_ATTR_RESAMPLE_WINDOW_DIMS = 1706 ,
  MIOPEN_ATTR_RESAMPLE_NAN_PROPAGATION = 1707 ,
  MIOPEN_ATTR_RESAMPLE_PADDING_MODE = 1708 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_XDESC = 1710 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_YDESC = 1711 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_IDXDESC = 1712 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_ALPHA = 1713 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_BETA = 1714 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_DESC = 1716 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DXDESC = 1720 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DYDESC = 1721 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_IDXDESC = 1722 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_ALPHA = 1723 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_BETA = 1724 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DESC = 1725 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_XDESC = 1726 ,
  MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_YDESC = 1727 ,
  MIOPEN_ATTR_OPERATION_CONCAT_AXIS = 1800 ,
  MIOPEN_ATTR_OPERATION_CONCAT_INPUT_DESCS = 1801 ,
  MIOPEN_ATTR_OPERATION_CONCAT_INPLACE_INDEX = 1802 ,
  MIOPEN_ATTR_OPERATION_CONCAT_OUTPUT_DESC = 1803 ,
  MIOPEN_ATTR_OPERATION_SIGNAL_MODE = 1900 ,
  MIOPEN_ATTR_OPERATION_SIGNAL_FLAGDESC = 1901 ,
  MIOPEN_ATTR_OPERATION_SIGNAL_VALUE = 1902 ,
  MIOPEN_ATTR_OPERATION_SIGNAL_XDESC = 1903 ,
  MIOPEN_ATTR_OPERATION_SIGNAL_YDESC = 1904 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_MODE = 2000 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_PHASE = 2001 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_XDESC = 2002 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_MEAN_DESC = 2003 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_INV_VARIANCE_DESC = 2004 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_SCALE_DESC = 2005 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_BIAS_DESC = 2006 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_EPSILON_DESC = 2007 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_EXP_AVG_FACTOR_DESC = 2008 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_MEAN_DESC = 2009 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_VAR_DESC = 2010 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_MEAN_DESC = 2011 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_VAR_DESC = 2012 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_YDESC = 2013 ,
  MIOPEN_ATTR_OPERATION_NORM_FWD_PEER_STAT_DESCS = 2014 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_MODE = 2100 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_XDESC = 2101 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_MEAN_DESC = 2102 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_INV_VARIANCE_DESC = 2103 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_DYDESC = 2104 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_SCALE_DESC = 2105 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_EPSILON_DESC = 2106 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_DSCALE_DESC = 2107 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_DBIAS_DESC = 2108 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_DXDESC = 2109 ,
  MIOPEN_ATTR_OPERATION_NORM_BWD_PEER_STAT_DESCS = 2110 ,
  MIOPEN_ATTR_OPERATION_RESHAPE_XDESC = 2200 ,
  MIOPEN_ATTR_OPERATION_RESHAPE_YDESC = 2201 ,
  MIOPEN_ATTR_RNG_DISTRIBUTION = 2300 ,
  MIOPEN_ATTR_RNG_NORMAL_DIST_MEAN = 2301 ,
  MIOPEN_ATTR_RNG_NORMAL_DIST_STANDARD_DEVIATION = 2302 ,
  MIOPEN_ATTR_RNG_UNIFORM_DIST_MAXIMUM = 2303 ,
  MIOPEN_ATTR_RNG_UNIFORM_DIST_MINIMUM = 2304 ,
  MIOPEN_ATTR_RNG_BERNOULLI_DIST_PROBABILITY = 2305 ,
  MIOPEN_ATTR_OPERATION_RNG_YDESC = 2310 ,
  MIOPEN_ATTR_OPERATION_RNG_SEED = 2311 ,
  MIOPEN_ATTR_OPERATION_RNG_DESC = 2312 ,
  MIOPEN_ATTR_OPERATION_RNG_OFFSET_DESC = 2313
}
 Backend Descriptor's Attribute. More...
 
enum  miopenBackendAttributeType_t {
  MIOPEN_TYPE_HANDLE = 0 ,
  MIOPEN_TYPE_DATA_TYPE ,
  MIOPEN_TYPE_BOOLEAN ,
  MIOPEN_TYPE_INT64 ,
  MIOPEN_TYPE_FLOAT ,
  MIOPEN_TYPE_DOUBLE ,
  MIOPEN_TYPE_VOID_PTR ,
  MIOPEN_TYPE_CONVOLUTION_MODE ,
  MIOPEN_TYPE_HEUR_MODE ,
  MIOPEN_TYPE_KNOB_TYPE ,
  MIOPEN_TYPE_NAN_PROPOGATION ,
  MIOPEN_TYPE_NUMERICAL_NOTE ,
  MIOPEN_TYPE_LAYOUT_TYPE ,
  MIOPEN_TYPE_ATTRIB_NAME ,
  MIOPEN_TYPE_POINTWISE_MODE ,
  MIOPEN_TYPE_BACKEND_DESCRIPTOR ,
  MIOPEN_TYPE_GENSTATS_MODE ,
  MIOPEN_TYPE_BN_FINALIZE_STATS_MODE ,
  MIOPEN_TYPE_REDUCTION_OPERATOR_TYPE ,
  MIOPEN_TYPE_BEHAVIOR_NOTE ,
  MIOPEN_TYPE_TENSOR_REORDERING_MODE ,
  MIOPEN_TYPE_RESAMPLE_MODE ,
  MIOPEN_TYPE_PADDING_MODE ,
  MIOPEN_TYPE_INT32 ,
  MIOPEN_TYPE_CHAR ,
  MIOPEN_TYPE_SIGNAL_MODE ,
  MIOPEN_TYPE_FRACTION ,
  MIOPEN_TYPE_NORM_MODE ,
  MIOPEN_TYPE_NORM_FWD_PHASE ,
  MIOPEN_TYPE_RNG_DISTRIBUTION
}
 Data type of an attribute of a backend descriptor. More...
 
enum  miopenPointwiseMode_t {
  MIOPEN_POINTWISE_ADD ,
  MIOPEN_POINTWISE_ADD_SQUARE ,
  MIOPEN_POINTWISE_DIV ,
  MIOPEN_POINTWISE_MAX ,
  MIOPEN_POINTWISE_MIN ,
  MIOPEN_POINTWISE_MOD ,
  MIOPEN_POINTWISE_MUL ,
  MIOPEN_POINTWISE_POW ,
  MIOPEN_POINTWISE_SUB ,
  MIOPEN_POINTWISE_ABS ,
  MIOPEN_POINTWISE_CEIL ,
  MIOPEN_POINTWISE_COS ,
  MIOPEN_POINTWISE_EXP ,
  MIOPEN_POINTWISE_FLOOR ,
  MIOPEN_POINTWISE_LOG ,
  MIOPEN_POINTWISE_NEG ,
  MIOPEN_POINTWISE_RSQRT ,
  MIOPEN_POINTWISE_SIN ,
  MIOPEN_POINTWISE_SQRT ,
  MIOPEN_POINTWISE_TAN ,
  MIOPEN_POINTWISE_ERF ,
  MIOPEN_POINTWISE_IDENTITY ,
  MIOPEN_POINTWISE_RELU_FWD ,
  MIOPEN_POINTWISE_TANH_FWD ,
  MIOPEN_POINTWISE_SIGMOID_FWD ,
  MIOPEN_POINTWISE_ELU_FWD ,
  MIOPEN_POINTWISE_GELU_FWD ,
  MIOPEN_POINTWISE_SOFTPLUS_FWD ,
  MIOPEN_POINTWISE_SWISH_FWD ,
  MIOPEN_POINTWISE_GELU_APPROX_TANH_FWD ,
  MIOPEN_POINTWISE_RELU_BWD ,
  MIOPEN_POINTWISE_TANH_BWD ,
  MIOPEN_POINTWISE_SIGMOID_BWD ,
  MIOPEN_POINTWISE_ELU_BWD ,
  MIOPEN_POINTWISE_GELU_BWD ,
  MIOPEN_POINTWISE_SOFTPLUS_BWD ,
  MIOPEN_POINTWISE_SWISH_BWD ,
  MIOPEN_POINTWISE_GELU_APPROX_TANH_BWD ,
  MIOPEN_POINTWISE_CMP_EQ ,
  MIOPEN_POINTWISE_CMP_NEQ ,
  MIOPEN_POINTWISE_CMP_GT ,
  MIOPEN_POINTWISE_CMP_GE ,
  MIOPEN_POINTWISE_CMP_LT ,
  MIOPEN_POINTWISE_CMP_LE ,
  MIOPEN_POINTWISE_LOGICAL_AND ,
  MIOPEN_POINTWISE_LOGICAL_OR ,
  MIOPEN_POINTWISE_LOGICAL_NOT ,
  MIOPEN_POINTWISE_GEN_INDEX ,
  MIOPEN_POINTWISE_BINARY_SELECT ,
  MIOPEN_POINTWISE_RECIPROCAL
}
 Intended poinwise math operation for a pointwise operation descriptor. More...
 
enum  miopenRngDistribution_t {
  MIOPEN_RNG_DISTRIBUTION_BERNOULLI ,
  MIOPEN_RNG_DISTRIBUTION_UNIFORM ,
  MIOPEN_RNG_DISTRIBUTION_NORMAL
}
 Distribution for random number generation. More...
 
enum  miopenAlphaBetaCase_t {
  DEFAULT = 0 ,
  SCALE = 1 ,
  BILINEAR = 2 ,
  ERROR_STATE = 3
}
 
enum  miopenBackendHeurMode_t {
  MIOPEN_HEUR_MODE_INSTANT = 0 ,
  MIOPEN_HEUR_MODE_B = 1 ,
  MIOPEN_HEUR_MODE_FALLBACK = 2 ,
  MIOPEN_HEUR_MODE_A = 3 ,
  MIOPEN_HEUR_MODES_COUNT = 4
}
 Operation mode of CUDNN_BACKEND_ENGINEHEUR_DESCRIPTOR. More...
 

Functions

miopenStatus_t miopenBackendCreateDescriptor (miopenBackendDescriptorType_t descriptorType, miopenBackendDescriptor_t *descriptor)
 Backend descriptor. More...
 
miopenStatus_t miopenBackendSetAttribute (miopenBackendDescriptor_t descriptor, miopenBackendAttributeName_t attributeName, miopenBackendAttributeType_t attributeType, int64_t elementCount, void *arrayOfElements)
 Sets an attribute of a descriptor. More...
 
miopenStatus_t miopenBackendFinalize (miopenBackendDescriptor_t descriptor)
 Finalizes a backend descriptor. More...
 
miopenStatus_t miopenBackendGetAttribute (miopenBackendDescriptor_t descriptor, miopenBackendAttributeName_t attributeName, miopenBackendAttributeType_t attributeType, int64_t requestedElementCount, int64_t *elementCount, void *arrayOfElements)
 Retrieves backend descriptor's attribute. More...
 
miopenStatus_t miopenBackendExecute (miopenHandle_t handle, miopenBackendDescriptor_t executionPlan, miopenBackendDescriptor_t variantPack)
 Executes a graph. More...
 
miopenStatus_t miopenBackendDestroyDescriptor (miopenBackendDescriptor_t descriptor)
 Destroys an instance of miopenBackendDescriptor_t. More...
 
miopenStatus_t miopenBackendInitialize (miopenBackendDescriptor_t descriptor, miopenBackendDescriptorType_t descriptorType, size_t sizeInBytes)
 Repurposes an instance of miopenBackendDescriptor_t. More...
 

Detailed Description

Enumeration Type Documentation

◆ miopenAlphaBetaCase_t

◆ miopenBackendAttributeName_t

Backend Descriptor's Attribute.

An enumerated type that indicates the backend descriptor attributes that can be set or get using miopenBackendSetAttribute() and miopenBackendGetAttribute() functions. The backend descriptor to which an attribute belongs is identified by the prefix of the attribute name.

Enumerator
MIOPEN_ATTR_POINTWISE_MODE 
MIOPEN_ATTR_POINTWISE_MATH_PREC 
MIOPEN_ATTR_POINTWISE_NAN_PROPAGATION 
MIOPEN_ATTR_POINTWISE_RELU_LOWER_CLIP 
MIOPEN_ATTR_POINTWISE_RELU_UPPER_CLIP 
MIOPEN_ATTR_POINTWISE_RELU_LOWER_CLIP_SLOPE 
MIOPEN_ATTR_POINTWISE_ELU_ALPHA 
MIOPEN_ATTR_POINTWISE_SOFTPLUS_BETA 
MIOPEN_ATTR_POINTWISE_SWISH_BETA 
MIOPEN_ATTR_POINTWISE_AXIS 
MIOPEN_ATTR_CONVOLUTION_COMP_TYPE 
MIOPEN_ATTR_CONVOLUTION_CONV_MODE 
MIOPEN_ATTR_CONVOLUTION_DILATIONS 
MIOPEN_ATTR_CONVOLUTION_FILTER_STRIDES 
MIOPEN_ATTR_CONVOLUTION_POST_PADDINGS 
MIOPEN_ATTR_CONVOLUTION_PRE_PADDINGS 
MIOPEN_ATTR_CONVOLUTION_SPATIAL_DIMS 
MIOPEN_ATTR_ENGINEHEUR_MODE 
MIOPEN_ATTR_ENGINEHEUR_OPERATION_GRAPH 
MIOPEN_ATTR_ENGINEHEUR_RESULTS 
MIOPEN_ATTR_ENGINEHEUR_SM_COUNT_TARGET 
MIOPEN_ATTR_ENGINECFG_ENGINE 
MIOPEN_ATTR_ENGINECFG_INTERMEDIATE_INFO 
MIOPEN_ATTR_ENGINECFG_KNOB_CHOICES 
MIOPEN_ATTR_EXECUTION_PLAN_HANDLE 
MIOPEN_ATTR_EXECUTION_PLAN_ENGINE_CONFIG 
MIOPEN_ATTR_EXECUTION_PLAN_WORKSPACE_SIZE 
MIOPEN_ATTR_EXECUTION_PLAN_COMPUTED_INTERMEDIATE_UIDS 
MIOPEN_ATTR_EXECUTION_PLAN_RUN_ONLY_INTERMEDIATE_UIDS 
MIOPEN_ATTR_EXECUTION_PLAN_JSON_REPRESENTATION 
MIOPEN_ATTR_INTERMEDIATE_INFO_UNIQUE_ID 
MIOPEN_ATTR_INTERMEDIATE_INFO_SIZE 
MIOPEN_ATTR_INTERMEDIATE_INFO_DEPENDENT_DATA_UIDS 
MIOPEN_ATTR_INTERMEDIATE_INFO_DEPENDENT_ATTRIBUTES 
MIOPEN_ATTR_KNOB_CHOICE_KNOB_TYPE 
MIOPEN_ATTR_KNOB_CHOICE_KNOB_VALUE 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_ALPHA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_BETA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_CONV_DESC 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_W 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_X 
MIOPEN_ATTR_OPERATION_CONVOLUTION_FORWARD_Y 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_ALPHA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_BETA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_CONV_DESC 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_W 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_DX 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_DY 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_ALPHA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_BETA 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_CONV_DESC 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_DW 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_X 
MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_FILTER_DY 
MIOPEN_ATTR_OPERATION_POINTWISE_PW_DESCRIPTOR 
MIOPEN_ATTR_OPERATION_POINTWISE_XDESC 
MIOPEN_ATTR_OPERATION_POINTWISE_BDESC 
MIOPEN_ATTR_OPERATION_POINTWISE_YDESC 
MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA1 
MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA2 
MIOPEN_ATTR_OPERATION_POINTWISE_DXDESC 
MIOPEN_ATTR_OPERATION_POINTWISE_DYDESC 
MIOPEN_ATTR_OPERATION_POINTWISE_TDESC 
MIOPEN_ATTR_OPERATION_GENSTATS_MODE 
MIOPEN_ATTR_OPERATION_GENSTATS_MATH_PREC 
MIOPEN_ATTR_OPERATION_GENSTATS_XDESC 
MIOPEN_ATTR_OPERATION_GENSTATS_SUMDESC 
MIOPEN_ATTR_OPERATION_GENSTATS_SQSUMDESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_STATS_MODE 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_MATH_PREC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SUM_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SQ_SUM_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_BIAS_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_PREV_RUNNING_MEAN_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_PREV_RUNNING_VAR_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_MEAN_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_VAR_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_SAVED_MEAN_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_SAVED_INV_STD_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_EQ_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_EQ_BIAS_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_ACCUM_COUNT_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_EPSILON_DESC 
MIOPEN_ATTR_OPERATION_BN_FINALIZE_EXP_AVERATE_FACTOR_DESC 
MIOPEN_ATTR_OPERATIONGRAPH_HANDLE 
MIOPEN_ATTR_OPERATIONGRAPH_OPS 
MIOPEN_ATTR_OPERATIONGRAPH_ENGINE_GLOBAL_COUNT 
MIOPEN_ATTR_TENSOR_BYTE_ALIGNMENT 
MIOPEN_ATTR_TENSOR_DATA_TYPE 
MIOPEN_ATTR_TENSOR_DIMENSIONS 
MIOPEN_ATTR_TENSOR_STRIDES 
MIOPEN_ATTR_TENSOR_VECTOR_COUNT 
MIOPEN_ATTR_TENSOR_VECTORIZED_DIMENSION 
MIOPEN_ATTR_TENSOR_UNIQUE_ID 
MIOPEN_ATTR_TENSOR_IS_VIRTUAL 
MIOPEN_ATTR_TENSOR_IS_BY_VALUE 
MIOPEN_ATTR_TENSOR_REORDERING_MODE 
MIOPEN_ATTR_TENSOR_RAGGED_OFFSET_DESC 
MIOPEN_ATTR_VARIANT_PACK_UNIQUE_IDS 
MIOPEN_ATTR_VARIANT_PACK_DATA_POINTERS 
MIOPEN_ATTR_VARIANT_PACK_INTERMEDIATES 
MIOPEN_ATTR_VARIANT_PACK_WORKSPACE 
MIOPEN_ATTR_LAYOUT_INFO_TENSOR_UID 
MIOPEN_ATTR_LAYOUT_INFO_TYPES 
MIOPEN_ATTR_KNOB_INFO_TYPE 
MIOPEN_ATTR_KNOB_INFO_MAXIMUM_VALUE 
MIOPEN_ATTR_KNOB_INFO_MINIMUM_VALUE 
MIOPEN_ATTR_KNOB_INFO_STRIDE 
MIOPEN_ATTR_ENGINE_OPERATION_GRAPH 
MIOPEN_ATTR_ENGINE_GLOBAL_INDEX 
MIOPEN_ATTR_ENGINE_KNOB_INFO 
MIOPEN_ATTR_ENGINE_NUMERICAL_NOTE 
MIOPEN_ATTR_ENGINE_LAYOUT_INFO 
MIOPEN_ATTR_ENGINE_BEHAVIOR_NOTE 
MIOPEN_ATTR_ENGINE_SM_COUNT_TARGET 
MIOPEN_ATTR_MATMUL_COMP_TYPE 
MIOPEN_ATTR_MATMUL_PADDING_VALUE 
MIOPEN_ATTR_OPERATION_MATMUL_ADESC 
MIOPEN_ATTR_OPERATION_MATMUL_BDESC 
MIOPEN_ATTR_OPERATION_MATMUL_CDESC 
MIOPEN_ATTR_OPERATION_MATMUL_DESC 
MIOPEN_ATTR_OPERATION_MATMUL_IRREGULARLY_STRIDED_BATCH_COUNT 
MIOPEN_ATTR_OPERATION_MATMUL_GEMM_M_OVERRIDE_DESC 
MIOPEN_ATTR_OPERATION_MATMUL_GEMM_N_OVERRIDE_DESC 
MIOPEN_ATTR_OPERATION_MATMUL_GEMM_K_OVERRIDE_DESC 
MIOPEN_ATTR_REDUCTION_OPERATOR 
MIOPEN_ATTR_REDUCTION_COMP_TYPE 
MIOPEN_ATTR_OPERATION_REDUCTION_XDESC 
MIOPEN_ATTR_OPERATION_REDUCTION_YDESC 
MIOPEN_ATTR_OPERATION_REDUCTION_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_MATH_PREC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_MEAN_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_INVSTD_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_BN_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_X_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DY_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DBN_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_DBN_BIAS_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_DY_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_X_SCALE_DESC 
MIOPEN_ATTR_OPERATION_BN_BWD_WEIGHTS_EQ_BIAS 
MIOPEN_ATTR_RESAMPLE_MODE 
MIOPEN_ATTR_RESAMPLE_COMP_TYPE 
MIOPEN_ATTR_RESAMPLE_SPATIAL_DIMS 
MIOPEN_ATTR_RESAMPLE_POST_PADDINGS 
MIOPEN_ATTR_RESAMPLE_PRE_PADDINGS 
MIOPEN_ATTR_RESAMPLE_STRIDES 
MIOPEN_ATTR_RESAMPLE_WINDOW_DIMS 
MIOPEN_ATTR_RESAMPLE_NAN_PROPAGATION 
MIOPEN_ATTR_RESAMPLE_PADDING_MODE 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_XDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_YDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_IDXDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_ALPHA 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_BETA 
MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_DESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DXDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DYDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_IDXDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_ALPHA 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_BETA 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_XDESC 
MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_YDESC 
MIOPEN_ATTR_OPERATION_CONCAT_AXIS 
MIOPEN_ATTR_OPERATION_CONCAT_INPUT_DESCS 
MIOPEN_ATTR_OPERATION_CONCAT_INPLACE_INDEX 
MIOPEN_ATTR_OPERATION_CONCAT_OUTPUT_DESC 
MIOPEN_ATTR_OPERATION_SIGNAL_MODE 
MIOPEN_ATTR_OPERATION_SIGNAL_FLAGDESC 
MIOPEN_ATTR_OPERATION_SIGNAL_VALUE 
MIOPEN_ATTR_OPERATION_SIGNAL_XDESC 
MIOPEN_ATTR_OPERATION_SIGNAL_YDESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_MODE 
MIOPEN_ATTR_OPERATION_NORM_FWD_PHASE 
MIOPEN_ATTR_OPERATION_NORM_FWD_XDESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_MEAN_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_INV_VARIANCE_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_SCALE_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_BIAS_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_EPSILON_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_EXP_AVG_FACTOR_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_MEAN_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_VAR_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_MEAN_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_VAR_DESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_YDESC 
MIOPEN_ATTR_OPERATION_NORM_FWD_PEER_STAT_DESCS 
MIOPEN_ATTR_OPERATION_NORM_BWD_MODE 
MIOPEN_ATTR_OPERATION_NORM_BWD_XDESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_MEAN_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_INV_VARIANCE_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_DYDESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_SCALE_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_EPSILON_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_DSCALE_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_DBIAS_DESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_DXDESC 
MIOPEN_ATTR_OPERATION_NORM_BWD_PEER_STAT_DESCS 
MIOPEN_ATTR_OPERATION_RESHAPE_XDESC 
MIOPEN_ATTR_OPERATION_RESHAPE_YDESC 
MIOPEN_ATTR_RNG_DISTRIBUTION 
MIOPEN_ATTR_RNG_NORMAL_DIST_MEAN 
MIOPEN_ATTR_RNG_NORMAL_DIST_STANDARD_DEVIATION 
MIOPEN_ATTR_RNG_UNIFORM_DIST_MAXIMUM 
MIOPEN_ATTR_RNG_UNIFORM_DIST_MINIMUM 
MIOPEN_ATTR_RNG_BERNOULLI_DIST_PROBABILITY 
MIOPEN_ATTR_OPERATION_RNG_YDESC 
MIOPEN_ATTR_OPERATION_RNG_SEED 
MIOPEN_ATTR_OPERATION_RNG_DESC 
MIOPEN_ATTR_OPERATION_RNG_OFFSET_DESC 
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendAttributeType_t

Data type of an attribute of a backend descriptor.

Specifies the data type of an attribute of a backend descriptor. It is used to specify the type of data pointed to by the void *arrayOfElements argument of miopenBackendSetAttribute() and miopenBackendGetAttribute()

Enumerator
MIOPEN_TYPE_HANDLE 

miopenHandle_t

MIOPEN_TYPE_DATA_TYPE 

miopenDataType_t

MIOPEN_TYPE_BOOLEAN 

bool

MIOPEN_TYPE_INT64 

int64_t

MIOPEN_TYPE_FLOAT 

float

MIOPEN_TYPE_DOUBLE 

double

MIOPEN_TYPE_VOID_PTR 

void *

MIOPEN_TYPE_CONVOLUTION_MODE 

miopenConvolutionMode_t

MIOPEN_TYPE_HEUR_MODE 

miopenBackendHeurMode_t

MIOPEN_TYPE_KNOB_TYPE 

miopenBackendKnobType_t

MIOPEN_TYPE_NAN_PROPOGATION 

miopenNanPropagation_t

MIOPEN_TYPE_NUMERICAL_NOTE 

miopenBackendNumericalNote_t

MIOPEN_TYPE_LAYOUT_TYPE 

miopenBackendLayoutType_t

MIOPEN_TYPE_ATTRIB_NAME 

miopenBackendAttributeName_t

MIOPEN_TYPE_POINTWISE_MODE 

miopenPointwiseMode_t

MIOPEN_TYPE_BACKEND_DESCRIPTOR 

miopenBackendDescriptor_t

MIOPEN_TYPE_GENSTATS_MODE 

miopenGenStatsMode_t

MIOPEN_TYPE_BN_FINALIZE_STATS_MODE 

miopenBnFinalizeStatsMode_t

MIOPEN_TYPE_REDUCTION_OPERATOR_TYPE 

miopenReduceTensorOp_t

MIOPEN_TYPE_BEHAVIOR_NOTE 

miopenBackendBehaviorNote_t

MIOPEN_TYPE_TENSOR_REORDERING_MODE 

miopenBackendTensorReordering_t

MIOPEN_TYPE_RESAMPLE_MODE 

miopenResampleMode_t

MIOPEN_TYPE_PADDING_MODE 

miopenPaddingMode_t

MIOPEN_TYPE_INT32 

int32_t

MIOPEN_TYPE_CHAR 

char

MIOPEN_TYPE_SIGNAL_MODE 

miopenSignalMode_t

MIOPEN_TYPE_FRACTION 

miopenFraction_t

MIOPEN_TYPE_NORM_MODE 

miopenBackendNormMode_t

MIOPEN_TYPE_NORM_FWD_PHASE 

miopenBackendNormFwdPhase_t

MIOPEN_TYPE_RNG_DISTRIBUTION 

miopenRngDistribution_t

Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendDescriptorType_t

Descriptor type.

An enumerated type that indicates the type of backend descriptors. Users create a backend descriptor of a particular type by passing a value from this enumerate to the miopenBackendCreateDescriptor() function.

Enumerator
MIOPEN_BACKEND_CONVOLUTION_DESCRIPTOR 
MIOPEN_BACKEND_ENGINE_DESCRIPTOR 
MIOPEN_BACKEND_ENGINECFG_DESCRIPTOR 
MIOPEN_BACKEND_ENGINEHEUR_DESCRIPTOR 
MIOPEN_BACKEND_EXECUTION_PLAN_DESCRIPTOR 
MIOPEN_BACKEND_INTERMEDIATE_INFO_DESCRIPTOR 
MIOPEN_BACKEND_KNOB_CHOICE_DESCRIPTOR 
MIOPEN_BACKEND_KNOB_INFO_DESCRIPTOR 
MIOPEN_BACKEND_LAYOUT_INFO_DESCRIPTOR 
MIOPEN_BACKEND_MATMUL_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_CONCAT_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_CONVOLUTION_BACKWARD_DATA_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_CONVOLUTION_BACKWARD_FILTER_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_CONVOLUTION_FORWARD_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_GEN_STATS_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_MATMUL_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_NORM_BACKWARD_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_NORM_FORWARD_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_POINTWISE_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_REDUCTION_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_RESAMPLE_BWD_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_RESAMPLE_FWD_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_RNG_DESCRIPTOR 
MIOPEN_BACKEND_OPERATION_SIGNAL_DESCRIPTOR 
MIOPEN_BACKEND_OPERATIONGRAPH_DESCRIPTOR 
MIOPEN_BACKEND_POINTWISE_DESCRIPTOR 
MIOPEN_BACKEND_REDUCTION_DESCRIPTOR 
MIOPEN_BACKEND_RESAMPLE_DESCRIPTOR 
MIOPEN_BACKEND_RNG_DESCRIPTOR 
MIOPEN_BACKEND_TENSOR_DESCRIPTOR 
MIOPEN_BACKEND_VARIANT_PACK_DESCRIPTOR 
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendHeurMode_t

Operation mode of CUDNN_BACKEND_ENGINEHEUR_DESCRIPTOR.

An enumerated type to indicate the operation mode of a CUDNN_BACKEND_ENGINEHEUR_DESCRIPTOR

Enumerator
MIOPEN_HEUR_MODE_INSTANT 
MIOPEN_HEUR_MODE_B 
MIOPEN_HEUR_MODE_FALLBACK 
MIOPEN_HEUR_MODE_A 
MIOPEN_HEUR_MODES_COUNT 
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenPointwiseMode_t

Intended poinwise math operation for a pointwise operation descriptor.

An enumerated type to indicate the intended pointwise math operation in the backend pointwise operation descriptor

Enumerator
MIOPEN_POINTWISE_ADD 

A pointwise addition between two tensors is computed.

MIOPEN_POINTWISE_ADD_SQUARE 

A pointwise addition between the first tensor and the square of the second tensor is computed.

MIOPEN_POINTWISE_DIV 

A pointwise true division of the first tensor by second tensor is computed.

MIOPEN_POINTWISE_MAX 

A pointwise maximum is taken between two tensors.

MIOPEN_POINTWISE_MIN 

A pointwise minimum is taken between two tensors.

MIOPEN_POINTWISE_MOD 

A pointwise floating-point remainder of the first tensor’s division by the second tensor is computed.

MIOPEN_POINTWISE_MUL 

A pointwise multiplication between two tensors is computed.

MIOPEN_POINTWISE_POW 

A pointwise value from the first tensor to the power of the second tensor is computed.

MIOPEN_POINTWISE_SUB 

A pointwise subtraction between two tensors is computed.

MIOPEN_POINTWISE_ABS 

A pointwise absolute value of the input tensor is computed.

MIOPEN_POINTWISE_CEIL 

A pointwise ceiling of the input tensor is computed.

MIOPEN_POINTWISE_COS 

A pointwise trigonometric cosine of the input tensor is computed.

MIOPEN_POINTWISE_EXP 

A pointwise exponential of the input tensor is computed.

MIOPEN_POINTWISE_FLOOR 

A pointwise floor of the input tensor is computed.

MIOPEN_POINTWISE_LOG 

A pointwise natural logarithm of the input tensor is computed.

MIOPEN_POINTWISE_NEG 

A pointwise numerical negative of the input tensor is computed.

MIOPEN_POINTWISE_RSQRT 

A pointwise reciprocal of the square root of the input tensor is computed.

MIOPEN_POINTWISE_SIN 

A pointwise trigonometric sine of the input tensor is computed.

MIOPEN_POINTWISE_SQRT 

A pointwise square root of the input tensor is computed.

MIOPEN_POINTWISE_TAN 

A pointwise trigonometric tangent of the input tensor is computed.

MIOPEN_POINTWISE_ERF 

A pointwise Error Function is computed.

MIOPEN_POINTWISE_IDENTITY 

No computation is performed. As with other pointwise modes, this mode provides implicit conversions by specifying the data type of the input tensor as one type, and the data type of the output tensor as another.

MIOPEN_POINTWISE_RELU_FWD 

A pointwise rectified linear activation function of the input tensor is computed.

MIOPEN_POINTWISE_TANH_FWD 

A pointwise tanh activation function of the input tensor is computed.

MIOPEN_POINTWISE_SIGMOID_FWD 

A pointwise sigmoid activation function of the input tensor is computed.

MIOPEN_POINTWISE_ELU_FWD 

A pointwise Exponential Linear Unit activation function of the input tensor is computed.

MIOPEN_POINTWISE_GELU_FWD 

A pointwise Gaussian Error Linear Unit activation function of the input tensor is computed.

MIOPEN_POINTWISE_SOFTPLUS_FWD 

A pointwise softplus activation function of the input tensor is computed.

MIOPEN_POINTWISE_SWISH_FWD 

A pointwise swish activation function of the input tensor is computed.

MIOPEN_POINTWISE_GELU_APPROX_TANH_FWD 

A pointwise tanh approximation of the Gaussian Error Linear Unit activation function of the input tensor is computed. The tanh GELU approximation is computed as \(0.5x\left( 1+\tanh\left[ \sqrt{2/\pi}\left( x+0.044715x^{3} \right) \right] \right)\)

MIOPEN_POINTWISE_RELU_BWD 

A pointwise first derivative of rectified linear activation of the input tensor is computed.

MIOPEN_POINTWISE_TANH_BWD 

A pointwise first derivative of tanh activation of the input tensor is computed.

MIOPEN_POINTWISE_SIGMOID_BWD 

A pointwise first derivative of sigmoid activation of the input tensor is computed.

MIOPEN_POINTWISE_ELU_BWD 

A pointwise first derivative of Exponential Linear Unit activation of the input tensor is computed.

MIOPEN_POINTWISE_GELU_BWD 

A pointwise first derivative of Gaussian Error Linear Unit activation of the input tensor is computed.

MIOPEN_POINTWISE_SOFTPLUS_BWD 

A pointwise first derivative of softplus activation of the input tensor is computed.

MIOPEN_POINTWISE_SWISH_BWD 

A pointwise first derivative of swish activation of the input tensor is computed.

MIOPEN_POINTWISE_GELU_APPROX_TANH_BWD 

A pointwise first derivative of the tanh approximation of the Gaussian Error Linear Unit activation of the input tensor is computed. This is computed as \(0.5\left( 1+\tanh\left( b\left( x+cx^{3} \right) \right)+bxsech^{2}\left( b\left( cx^{3}+x \right) \right)\left( 3cx^{2}+1 \right)dy \right)\) where \(b\) is \(\sqrt{2/\pi}\) and \(c\) is \(0.044715\)

MIOPEN_POINTWISE_CMP_EQ 

A pointwise truth value of the first tensor equal to the second tensor is computed.

MIOPEN_POINTWISE_CMP_NEQ 

A pointwise truth value of the first tensor not equal to the second tensor is computed.

MIOPEN_POINTWISE_CMP_GT 

A pointwise truth value of the first tensor greater than the second tensor is computed.

MIOPEN_POINTWISE_CMP_GE 

A pointwise truth value of the first tensor greater than equal to the second tensor is computed.

MIOPEN_POINTWISE_CMP_LT 

A pointwise truth value of the first tensor less than the second tensor is computed.

MIOPEN_POINTWISE_CMP_LE 

A pointwise truth value of the first tensor less than equal to the second tensor is computed.

MIOPEN_POINTWISE_LOGICAL_AND 

A pointwise truth value of the first tensor logical AND second tensor is computed.

MIOPEN_POINTWISE_LOGICAL_OR 

A pointwise truth value of the first tensor logical OR second tensor is computed.

MIOPEN_POINTWISE_LOGICAL_NOT 

A pointwise truth value of input tensors logical NOT is computed.

MIOPEN_POINTWISE_GEN_INDEX 

A pointwise index value of the input tensor is generated along a given axis.

MIOPEN_POINTWISE_BINARY_SELECT 

A pointwise value is selected amongst two input tensors based on a given predicate tensor.

MIOPEN_POINTWISE_RECIPROCAL 

A pointwise reciprocal of the input tensor is computed. In other words, for every element x in the input tensor, 1/x is computed.

Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenRngDistribution_t

Distribution for random number generation.

An enumerated type to indicate the distribution to be used in the backend Rng (random number generator) operation.

Enumerator
MIOPEN_RNG_DISTRIBUTION_BERNOULLI 
MIOPEN_RNG_DISTRIBUTION_UNIFORM 
MIOPEN_RNG_DISTRIBUTION_NORMAL 
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

Function Documentation

◆ miopenBackendCreateDescriptor()

miopenStatus_t miopenBackendCreateDescriptor ( miopenBackendDescriptorType_t  descriptorType,
miopenBackendDescriptor_t *  descriptor 
)

Backend descriptor.

A typedef void pointer to one of many opaque descriptor structures. The type of structure that it points to is determined by the argument when allocating the memory for the opaque structure using miopenBackendCreateDescriptor().

Attributes of a descriptor can be set using miopenBackendSetAttribute(). After all required attributes of a descriptor are set, the descriptor can be finalized by miopenBackendFinalize(). From a finalized descriptor, one can query its queryable attributes using miopenBackendGetAttribute(). Finally, the memory allocated for a descriptor can be freed using miopenBackendDestroyDescriptor().

Creates a backend descriptor

Allocates memory for a given descriptorType at the location pointed by the descriptor

Parameters
[in]descriptorTypeOne among the enumerated miopenBackendDescriptorType_t
[out]descriptorPointer to a descriptor
Return values
miopenStatusSuccessThe creation was successful
miopenStatusUnsupportedOpCreating a descriptor of a given type is not supported
miopenStatusAllocFailedThe memory allocation failed
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendDestroyDescriptor()

miopenStatus_t miopenBackendDestroyDescriptor ( miopenBackendDescriptor_t  descriptor)

Destroys an instance of miopenBackendDescriptor_t.

Destroys instances of miopenBackendDescriptor_t that were previously created using miopenBackendCreateDescriptor(). The value pointed by the descriptor will be undefined after the memory is free and done.

Undefined Behavior if the descriptor was altered between the 'Create' and 'Destroy Descriptor'

Parameters
[in]descriptorInstance of miopenBackendDescriptor_t previously created by miopenBackendCreateDescriptor()
Return values
miopenStatusSuccessThe memory was destroyed successfully
miopenStatusAllocFailedThe destruction of memory failed
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendExecute()

miopenStatus_t miopenBackendExecute ( miopenHandle_t  handle,
miopenBackendDescriptor_t  executionPlan,
miopenBackendDescriptor_t  variantPack 
)

Executes a graph.

Executes the given Engine Configuration Plan on the VariantPack and the finalized ExecutionPlan on the data. The data and the working space are encapsulated in the VariantPack

Parameters
[in]handleAn instance of miopenHandle_t
[in]executionPlanDescriptor of the finalized ExecutionPlan
[in]variantPackDescriptor of the finalized VariantPack consisting of:
  • Data pointer for each non-virtual pointer of the operation set in the execution plan.
  • Pointer to user-allocated workspace in global memory at least as large as the size queried
Return values
miopenStatusSuccessThe ExecutionPlan was executed successfully
miopenStatusBadParmAn incorrect or inconsistent value is encountered. For example, a required data pointer is invalid
miopenStatusInternalErrorSome internal errors were encountered
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendFinalize()

miopenStatus_t miopenBackendFinalize ( miopenBackendDescriptor_t  descriptor)

Finalizes a backend descriptor.

Finalizes the memory pointed to by the descriptor. The type of finalization is done depending on the descriptorType argument with which the descriptor was created using miopenBackendCreateDescriptor() or initialized using miopenBackendInitialize().

Parameters
[in]descriptorInstance of miopenBackendDescriptor_t to finalize
Return values
miopenStatusSuccessThe descriptor was finalized successfully
miopenStatusBadParmInvalid descriptor attribute values or combination thereof is encountered
miopenStatusUnsupportedOpDescriptor attribute values or combinations therefore not supported by the current version
miopenStatusInternalErrorSome internal errors are encountered
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendGetAttribute()

miopenStatus_t miopenBackendGetAttribute ( miopenBackendDescriptor_t  descriptor,
miopenBackendAttributeName_t  attributeName,
miopenBackendAttributeType_t  attributeType,
int64_t  requestedElementCount,
int64_t *  elementCount,
void *  arrayOfElements 
)

Retrieves backend descriptor's attribute.

This function retrieves the values of an attribute of a descriptor. attributeName is the name of the attribute whose value is requested. attributeType is the type of attribute. requestsedElementCount is the number of elements to be potentially retrieved. The number of elements for the requested attribute is stored in elementCount. The retrieved values are stored in arrayOfElements. When the attribute is expected to have a single value, arrayOfElements can be pointer to the output value. This function will return miopenStatusNotInitialized if the descriptor has not been successfully finalized using miopenBackendFinalize()

Parameters
[in]descriptorInstance of miopenBackendDescriptor_t whose attribute to retrieve
[in]attributeNameThe name of the attribute being get from the descriptor
[in]attributeTypeThe type of attribute
[in]requestedElementCountNumber of elements to output to arrayOfElements
[out]elementCountOutput pointer for the number of elements the descriptor attribute has. Note that miopenBackendGetAttribute() will only write the least of this and requestedElementCount elements to arrayOfElements
[out]arrayOfElementsArray of elements of the datatype of the attributeType. The data type of the attributeType is listed in the mapping table of miopenBackendAttributeType_t
Return values
miopenStatusSuccessThe attributeName was retrieved from the descriptor successfully
miopenStatusBadParmOne or more invalid or inconsistent argument values were encountered. Some examples include:
  • attributeName is not a valid attribute for the descriptor.
  • attributeType is not one of the valid types for the attribute.
miopenStatusNotInitializedThe descriptor has not been successfully finalized using miopenBackendFinalize()
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendInitialize()

miopenStatus_t miopenBackendInitialize ( miopenBackendDescriptor_t  descriptor,
miopenBackendDescriptorType_t  descriptorType,
size_t  sizeInBytes 
)

Repurposes an instance of miopenBackendDescriptor_t.

Repurposes a pre-allocated memory pointed to by a descriptor of size sizeInByte to a backend descriptor of type descriptorType. The finalized state of the descriptor is set to false.

Parameters
[in]descriptorInstance of miopenBackendDescriptor_t to be initialized
[in]descriptorTypeEnumerated value for the type miopenBackendDescriptorType_t
[in]sizeInBytesSize of memory pointed to by descriptor
Return values
miopenStatusSuccessThe memory was initialized successfully
miopenStatusBadParmAn invalid or inconsistent argument value is encountered. Some examples include:
  • descriptor is a nullptr
  • sizeInBytes is less than the size required by the descriptor type
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.

◆ miopenBackendSetAttribute()

miopenStatus_t miopenBackendSetAttribute ( miopenBackendDescriptor_t  descriptor,
miopenBackendAttributeName_t  attributeName,
miopenBackendAttributeType_t  attributeType,
int64_t  elementCount,
void *  arrayOfElements 
)

Sets an attribute of a descriptor.

This function sets an attribute of a descriptor to values provided as a pointer. Returns miopenStatusUnsupportedOp if the descriptor is already successfully finalized using miopenBackendFinalize().

Parameters
[in]descriptorInstance of miopenBackendDescriptor_t whose attribute is being set
[in]attributeNameThe name of the attribute being set on the descriptor
[in]attributeTypeThe type of attribute
[in]elementCountNumber of elements being set
[in]arrayOfElementsThe starting location for an array from where to read the values from. The elements of the array are expected to be of the datatype of the attributeType. The datatype of the attributeType is listed in the mapping table of miopenBackendAttributeType_t.
Return values
miopenStatusSuccessThe attributeName was set to the descriptor
miopenStatusNotInitializedThe backend descriptor pointed to by the descriptor is already in the finalized state
miopenStatusBadParmThe function is called with arguments that correspond to invalid values. Some examples include:
  • attributeName is not a settable attribute of descriptor.
  • attributeType is incorrect for this attributeName.
  • elemCount value is unexpected.
  • arrayOfElements contains values invalid for the attributeType.
miopenStatusUnsupportedOpThe values to which the attributes are being set are not supported by the current version
miopenStatusUnknownErrorThe error information was not gathered
Examples
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-miopen/checkouts/docs-6.2.2/include/miopen/miopen.h.