A node’s op_type
names an operator of the operator set that its domain and the model’s
opset_import select. The set itself is not in the file; these tables, from
ONNX’s Operators.md and Operators-ml.md and the operator
pages at onnx.ai, say what each name
means. The “Since” column is the opset of the operator’s latest definition, as listed in
November 2026, following the main branch (opset 29). An operator named here but
changed by a later opset keeps its name. A name not listed here belongs to a custom
domain or to a function local
to the model. The explorer looks an operator up by its node’s domain and
op_type together, so a Gelu in another domain is not taken
for this one, and a node that calls a local function says so.
Other domains. Operators of com.microsoft, ONNX Runtime’s
contrib set, are common in exported models but are defined and documented by ONNX
Runtime, not by ONNX, and change with its releases; they are outside this format’s
specification, so this page names the domain but not its operators, and the explorer
says which domain such a node belongs to.
Attributes are listed by name and explained in the
attribute table at the end. Most names mean the same in
every operator that has them; where one does not (mode,
reduction, scale, nodes_modes), the table and the
codes give each operator’s meaning. The
inputs, outputs and full type constraints of each operator are in the ONNX operator
documents and are not repeated here. The explorer adds each operator’s line here to its
note on op_type and on the attribute’s name, and to its table of
operators used.
ai.onnx: the default set
| Operator | Since | What it does | Attributes |
|---|---|---|---|
| Abs | 13 | Absolute value of each element. | |
| Acos | 22 | Arccosine of each element. | |
| Acosh | 22 | Inverse hyperbolic cosine of each element. | |
| Add | 14 | Adds two tensors element by element, with broadcasting. | |
| And | 7 | Logical AND, element by element, with broadcasting. | |
| ArgMax | 13 | Indices of the largest elements along an axis. | axis, keepdims, select_last_index |
| ArgMin | 13 | Indices of the smallest elements along an axis. | axis, keepdims, select_last_index |
| Asin | 22 | Arcsine of each element. | |
| Asinh | 22 | Inverse hyperbolic sine of each element. | |
| Atan | 22 | Arctangent of each element. | |
| Atanh | 22 | Inverse hyperbolic tangent of each element. | |
| AveragePool | 22 | Average pooling over windows of the spatial dimensions. | auto_pad, ceil_mode, count_include_pad, dilations, kernel_shape, pads, strides |
| BatchNormalization | 15 | Batch normalisation, with stored or computed mean and variance. | epsilon, momentum, training_mode |
| BitCast | 26 | Reinterprets a tensor’s bits as another type of the same width. | to |
| BitShift | 28 | Shifts unsigned integers left or right. | direction |
| BitwiseAnd | 18 | Bitwise AND of integers, with broadcasting. | |
| BitwiseNot | 18 | Bitwise NOT of integers. | |
| BitwiseOr | 18 | Bitwise OR of integers, with broadcasting. | |
| BitwiseXor | 18 | Bitwise XOR of integers, with broadcasting. | |
| Cast | 28 | Converts a tensor to another data type. | to, saturate, round_mode |
| Ceil | 13 | Rounds each element up. | |
| Col2Im | 18 | Rebuilds images from columns of blocks. | dilations, pads, strides |
| Compress | 28 | Selects elements where a boolean condition is true. | axis |
| Concat | 13 | Joins tensors along an existing axis. | axis |
| ConcatFromSequence | 11 | Joins a sequence of tensors, optionally along a new axis. | axis, new_axis |
| Constant | 25 | Produces a constant given in its attributes. | sparse_value, value, value_float, value_floats, value_int, value_ints, value_string, value_strings |
| ConstantOfShape | 25 | A tensor of a given shape, filled with one value. | value |
| Conv | 22 | Convolution over the spatial dimensions. | auto_pad, dilations, group, kernel_shape, pads, strides |
| ConvInteger | 10 | Convolution of integers with zero points. | auto_pad, dilations, group, kernel_shape, pads, strides |
| ConvTranspose | 22 | Transposed convolution. | auto_pad, dilations, group, kernel_shape, output_padding, output_shape, pads, strides |
| Cos | 22 | Cosine of each element. | |
| Cosh | 22 | Hyperbolic cosine of each element. | |
| CumProd | 26 | Running product along an axis. | exclusive, reverse |
| CumSum | 14 | Running sum along an axis. | exclusive, reverse |
| DFT | 20 | Discrete Fourier transform. | inverse, onesided |
| DeformConv | 22 | Deformable convolution. | dilations, group, kernel_shape, pads, strides |
| DequantizeLinear | 28 | Converts a quantised tensor back to full precision. | axis, block_size |
| DequantizePacked | 29 | Converts one quantised tensor, stored as a flat array of bytes in a GGML/GGUF block layout, back to floating point. Input: the bytes; output: the tensor. | format (required: gguf:q4_0, gguf:q4_1, gguf:q5_0, gguf:q5_1, gguf:q8_0, gguf:q8_1, gguf:q2_k to gguf:q8_k, gguf:iq1_s, gguf:iq1_m, gguf:iq2_xxs, gguf:iq2_xs, gguf:iq2_s, gguf:iq3_xxs, gguf:iq3_s, gguf:iq4_nl, gguf:iq4_xs, gguf:tq1_0, gguf:tq2_0, gguf:mxfp4, gguf:nvfp4, gguf:q1_0, gguf:q2_0), output_dtype (FLOAT, FLOAT16, BFLOAT16 or DOUBLE; default FLOAT), shape (required; the last dimension a multiple of the block’s elements) |
| Det | 22 | Determinant of square matrices. | |
| Div | 14 | Divides two tensors element by element. | |
| Dropout | 22 | Randomly zeroes elements when training. | seed |
| Einsum | 28 | Einstein summation. | equation |
| Equal | 19 | True where elements are equal. | |
| Erf | 13 | Error function. | |
| Exp | 13 | Exponential. | |
| Expand | 13 | Broadcasts to a given shape. | |
| Expm1 | 29 | exp(x) − 1, accurate for small x. | |
| EyeLike | 22 | Ones on a diagonal, shaped like the input. | dtype, k |
| Flatten | 25 | Flattens a tensor into a matrix. | axis |
| Floor | 13 | Rounds each element down. | |
| GRU | 22 | Gated recurrent unit network. | activation_alpha, activation_beta, activations, clip, direction, hidden_size, layout, linear_before_reset |
| Gather | 13 | Takes slices along an axis. | axis |
| GatherElements | 13 | Takes elements at per-element indices. | axis |
| GatherND | 29 | Takes slices by multi-dimensional indices. | batch_dims |
| GlobalAveragePool | 22 | Averages over all spatial dimensions. | |
| GlobalLpPool | 22 | Lp norm over all spatial dimensions. | p |
| GlobalMaxPool | 22 | Maximum over all spatial dimensions. | |
| Greater | 13 | True where the first is larger. | |
| GridSample | 22 | Samples a tensor at positions given by a grid. | align_corners, mode, padding_mode |
| Hardmax | 13 | One at the largest element of an axis. | axis |
| Identity | 25 | Passes its input through. | |
| If | 25 | Runs one of two subgraphs. | else_branch, then_branch |
| ImageDecoder | 20 | Decodes encoded image bytes. | pixel_format |
| InstanceNormalization | 22 | Normalises each sample and channel. | epsilon |
| IsInf | 20 | True where an element is infinite. | detect_negative, detect_positive |
| IsNaN | 20 | True where an element is not a number. | |
| LRN | 13 | Local response normalisation. | alpha, beta, bias, size |
| LSTM | 22 | Long short-term memory network. | activation_alpha, activation_beta, activations, clip, direction, hidden_size, input_forget, layout |
| Less | 13 | True where the first is smaller. | |
| Log | 13 | Natural logarithm. | |
| Log1p | 29 | Natural logarithm of one plus x, accurate for small x. | |
| LogCumSumExp | 29 | Running log-sum-exp along an axis, inclusive and forward. | axis |
| Loop | 25 | Runs a subgraph repeatedly. | body |
| LpNormalization | 22 | Normalises by the Lp norm. | axis, p |
| LpPool | 22 | Lp pooling over windows. | auto_pad, ceil_mode, dilations, kernel_shape, p, pads, strides |
| MatMul | 13 | Matrix multiplication, as NumPy’s matmul. | |
| MatMulInteger | 10 | Matrix multiplication of integers. | |
| Max | 13 | Element-wise maximum. | |
| MaxPool | 22 | Maximum pooling over windows. | auto_pad, ceil_mode, dilations, kernel_shape, pads, storage_order, strides |
| MaxRoiPool | 22 | Maximum pooling over regions of interest. | pool_shape, roi_scale |
| MaxUnpool | 22 | Puts values back at the pooled positions. | kernel_shape, pads, strides |
| Mean | 13 | Element-wise mean. | |
| MelWeightMatrix | 17 | Weights from a linear spectrum to mel bands. | output_datatype |
| Min | 13 | Element-wise minimum. | |
| Mod | 28 | Remainder of division. | fmod |
| Mul | 14 | Multiplies two tensors element by element. | |
| Multinomial | 22 | Samples class indices. | dtype, sample_size, seed |
| Neg | 13 | Negates each element. | |
| NonMaxSuppression | 11 | Picks boxes by score, dropping overlaps. | center_point_box |
| NonZero | 13 | Indices of non-zero elements. | |
| Not | 1 | Logical NOT. | |
| OneHot | 28 | Turns indices into one-hot vectors. | axis |
| Optional | 28 | Makes an optional, holding the input or empty. | type |
| OptionalGetElement | 28 | Gets the value out of an optional. | |
| OptionalHasElement | 28 | True if an optional holds a value. | |
| Or | 7 | Logical OR. | |
| Pad | 25 | Pads a tensor by given amounts. | mode |
| Pow | 15 | Raises to a power. | |
| QLinearConv | 10 | Convolution of quantised tensors. | auto_pad, dilations, group, kernel_shape, pads, strides |
| QLinearMatMul | 21 | Matrix multiplication of quantised tensors. | |
| QuantizeLinear | 28 | Converts to integers with a scale and zero point. | axis, block_size, output_dtype, precision |
| RNN | 22 | Plain recurrent network. | activation_alpha, activation_beta, activations, clip, direction, hidden_size, layout |
| RandomNormal | 22 | Normally distributed random values. | dtype, mean, scale, seed, shape |
| RandomNormalLike | 22 | Normal random values, shaped like the input. | dtype, mean, scale, seed |
| RandomUniform | 22 | Uniform random values. | dtype, high, low, seed, shape |
| RandomUniformLike | 22 | Uniform random values, shaped like the input. | dtype, high, low, seed |
| Reciprocal | 13 | One divided by each element. | |
| ReduceMax | 20 | Largest along given axes. | keepdims, noop_with_empty_axes |
| ReduceMean | 18 | Mean along given axes. | keepdims, noop_with_empty_axes |
| ReduceMin | 20 | Smallest along given axes. | keepdims, noop_with_empty_axes |
| ReduceProd | 18 | Product along given axes. | keepdims, noop_with_empty_axes |
| ReduceSum | 13 | Sum along given axes. | keepdims, noop_with_empty_axes |
| RegexFullMatch | 20 | True where a whole string matches a pattern. | pattern |
| Reshape | 25 | Reshapes a tensor. | allowzero |
| Resize | 19 | Resizes a tensor by sizes or scales. | antialias, axes, coordinate_transformation_mode, cubic_coeff_a, exclude_outside, extrapolation_value, keep_aspect_ratio_policy, mode, nearest_mode |
| ReverseSequence | 28 | Reverses each sequence of a batch. | batch_axis, time_axis |
| RoiAlign | 22 | Crops regions of interest to one size. | coordinate_transformation_mode, mode, output_height, output_width, sampling_ratio |
| Round | 22 | Rounds to the nearest integer, halves to even. | |
| STFT | 17 | Short-time Fourier transform. | onesided |
| Scan | 25 | Runs a subgraph over sequences, with state. | body, num_scan_inputs, scan_input_axes, scan_input_directions, scan_output_axes, scan_output_directions |
| Scatter | 11 | Deprecated: use ScatterElements. | axis |
| ScatterElements | 29 | Writes values at per-element indices. | axis, reduction |
| ScatterND | 29 | Writes values at multi-dimensional indices. | reduction |
| SequenceAt | 11 | Gets one tensor from a sequence. | |
| SequenceConstruct | 11 | Makes a sequence from tensors. | |
| SequenceEmpty | 11 | Makes an empty sequence. | dtype |
| SequenceErase | 11 | Removes one tensor from a sequence. | |
| SequenceInsert | 11 | Inserts a tensor into a sequence. | |
| SequenceLength | 11 | The number of tensors in a sequence. | |
| Shape | 25 | The shape of a tensor, as a tensor. | end, start |
| Sigmoid | 13 | Sigmoid function. | |
| Sign | 13 | The sign of each element. | |
| Sin | 22 | Sine. | |
| Sinh | 22 | Hyperbolic sine. | |
| Size | 25 | The number of elements. | |
| Slice | 13 | Takes a slice along given axes. | |
| Split | 18 | Splits a tensor into pieces. | axis, num_outputs |
| SplitToSequence | 24 | Splits a tensor into a sequence. | axis, keepdims |
| Sqrt | 13 | Square root. | |
| Squeeze | 25 | Removes dimensions of size 1. | |
| StringConcat | 20 | Joins strings. | |
| StringNormalizer | 10 | Strips stop words and changes case. | case_change_action, is_case_sensitive, locale, stopwords |
| StringSplit | 20 | Splits strings on a delimiter. | delimiter, maxsplit |
| Sub | 14 | Subtracts two tensors element by element. | |
| Sum | 13 | Element-wise sum. | |
| Tan | 22 | Tangent. | |
| Tanh | 13 | Hyperbolic tangent. | |
| TensorScatter | 24 | Writes updates into a fixed-size key/value cache. | axis, mode |
| TfIdfVectorizer | 9 | Counts n-grams, weighted by TF-IDF. | max_gram_length, max_skip_count, min_gram_length, mode, ngram_counts, ngram_indexes, pool_int64s, pool_strings, weights |
| Tile | 13 | Repeats a tensor along each dimension. | |
| TopK | 24 | The k largest or smallest along an axis. | axis, largest, sorted |
| Transpose | 25 | Permutes dimensions. | perm |
| Trilu | 14 | The upper or lower triangle. | upper |
| Unique | 28 | The unique elements. | axis, sorted |
| Unsqueeze | 25 | Inserts dimensions of size 1. | |
| Upsample | 10 | Deprecated: use Resize. | mode |
| Where | 16 | Picks elements by a condition. | |
| Xor | 7 | Logical exclusive OR. |
ai.onnx functions
These are defined by a body of other operators, so a runtime that lacks one can still run it by expanding it.
| Operator | Since | What it does | Attributes |
|---|---|---|---|
| AffineGrid | 20 | A sampling grid from affine matrices. | align_corners |
| Attention | 25 | Scaled dot-product attention. | is_causal, kv_num_heads, left_window_size, q_num_heads, qk_matmul_output_mode, right_window_size, scale, softcap, softmax_precision |
| Bernoulli | 22 | Samples 0 or 1 by per-element probability. | dtype, seed |
| BlackmanWindow | 17 | A Blackman window. | output_datatype, periodic |
| CastLike | 25 | Casts to the type of a second tensor. | saturate |
| CausalConvWithState | 29 | A stateful, causal, depthwise 1-D convolution. | activation |
| Celu | 28 | Continuously differentiable exponential linear unit. | alpha |
| CenterCropPad | 18 | Crops or pads around the centre. | axes |
| Clip | 13 | Limits to a minimum and maximum. | |
| DepthToSpace | 28 | Moves channel data into spatial blocks. | blocksize, mode |
| DynamicQuantizeLinear | 11 | Quantises, working out the scale. | |
| Elu | 22 | Exponential linear unit. | alpha |
| Gelu | 20 | Gaussian error linear unit. | approximate |
| Gemm | 29 | General matrix multiplication: alpha × A × B + beta × C. | alpha, beta, transA, transB |
| GreaterOrEqual | 16 | True where the first is larger or equal. | |
| GroupNormalization | 21 | Normalises over groups of channels. | epsilon, num_groups, stash_type |
| GroupedMatMul | 29 | Multiplies each token by its groups’ weight matrices. | |
| HammingWindow | 17 | A Hamming window. | output_datatype, periodic |
| HannWindow | 17 | A Hann window. | output_datatype, periodic |
| HardSigmoid | 22 | Piecewise-linear sigmoid. | alpha, beta |
| HardSwish | 22 | Piecewise swish. | |
| LayerNormalization | 17 | Normalises over the last dimensions. | axis, epsilon, stash_type |
| LeakyRelu | 16 | Rectified unit with a small slope below zero. | alpha |
| LessOrEqual | 16 | True where the first is smaller or equal. | |
| LinearAttention | 27 | Linear attention recurrence for decoding and prefill. | chunk_size, kv_num_heads, q_num_heads, scale, update_rule |
| LogSoftmax | 13 | Logarithm of the softmax. | axis |
| MeanVarianceNormalization | 29 | Zero mean, unit variance over given axes. | axes |
| Mish | 22 | The mish activation function. | |
| NegativeLogLikelihoodLoss | 22 | Negative log likelihood. | ignore_index, reduction |
| PRelu | 16 | Rectified unit with a learned slope. | |
| RMSNormalization | 23 | Divides by the root mean square. | axis, epsilon, stash_type |
| Range | 27 | A sequence of numbers. | |
| ReduceL1 | 18 | L1 norm along axes. | keepdims, noop_with_empty_axes |
| ReduceL2 | 18 | L2 norm along axes. | keepdims, noop_with_empty_axes |
| ReduceLogSum | 28 | Logarithm of the sum. | keepdims, noop_with_empty_axes |
| ReduceLogSumExp | 28 | Logarithm of the sum of exponentials. | keepdims, noop_with_empty_axes |
| ReduceSumSquare | 18 | Sum of squares. | keepdims, noop_with_empty_axes |
| Relu | 14 | Rectified linear unit. | |
| RotaryEmbedding | 23 | Rotary positional embeddings. | interleaved, num_heads, rotary_embedding_dim |
| Selu | 22 | Scaled exponential linear unit. | alpha, gamma |
| SequenceMap | 17 | Runs a subgraph over sequences. | body |
| Shrink | 9 | Shrinks values towards zero. | bias, lambd |
| Softmax | 13 | Normalises to probabilities. | axis |
| SoftmaxCrossEntropyLoss | 13 | Softmax cross-entropy. | ignore_index, reduction |
| Softplus | 22 | The softplus function. | |
| Softsign | 22 | The softsign function. | |
| SpaceToDepth | 28 | Moves spatial blocks into channels. | blocksize |
| SwiGLU | 28 | Swish of a gate input, times a second input. | alpha |
| Swish | 24 | x × sigmoid(alpha × x). | alpha |
| ThresholdedRelu | 22 | Passes values above a threshold. | alpha |
ai.onnx.preview and ai.onnx.preview.training
| Domain | Operator | Since | What it does | Attributes |
|---|---|---|---|---|
| ai.onnx.preview | FlexAttention | 1 | Experimental attention whose scores and probabilities two subgraphs can modify. | prob_mod, scale, score_mod, softmax_precision |
| ai.onnx.preview.training | Adagrad | 1 | One Adagrad step. | decay_factor, epsilon, norm_coefficient |
| ai.onnx.preview.training | Adam | 1 | One Adam step. | alpha, beta, epsilon, norm_coefficient, norm_coefficient_post |
| ai.onnx.preview.training | Gradient | 1 | Gradients of outputs with respect to inputs. | xs, y, zs |
| ai.onnx.preview.training | Momentum | 1 | One momentum step. | alpha, beta, mode, norm_coefficient |
ai.onnx.ml: classical machine learning
| Operator | Since | What it does | Attributes |
|---|---|---|---|
| ArrayFeatureExtractor | 1 | Selects elements by indices from the last axes. | |
| Binarizer | 1 | Maps values to 0 or 1 by a threshold. | threshold |
| CastMap | 1 | Turns a map into a tensor, by key order. | cast_to, map_form, max_map |
| CategoryMapper | 1 | Converts strings to integers and back. | cats_int64s, cats_strings, default_int64, default_string |
| DictVectorizer | 1 | Turns a dictionary into a 1-D array. | int64_vocabulary, string_vocabulary |
| FeatureVectorizer | 1 | Joins tensors into one output. | inputdimensions |
| Imputer | 1 | Replaces one value with another. | imputed_value_floats, imputed_value_int64s, replaced_value_float, replaced_value_int64 |
| LabelEncoder | 4 | Maps each element through keys and values. | default_float, default_int64, default_string, default_tensor, keys_floats, keys_int64s, keys_strings, keys_tensor, values_floats, values_int64s, values_strings, values_tensor |
| LinearClassifier | 1 | A linear classifier. | classlabels_ints, classlabels_strings, coefficients, intercepts, multi_class, post_transform |
| LinearRegressor | 1 | A generalised linear regression. | coefficients, intercepts, post_transform, targets |
| Normalizer | 1 | Normalises by MAX, L1 or L2. | norm |
| OneHotEncoder | 1 | Turns a category into ones and zeros. | cats_int64s, cats_strings, zeros |
| SVMClassifier | 1 | A support vector machine classifier. | classlabels_ints, classlabels_strings, coefficients, kernel_params, kernel_type, post_transform, prob_a, prob_b, rho, support_vectors, vectors_per_class |
| SVMRegressor | 1 | Support vector regression and anomaly detection. | coefficients, kernel_params, kernel_type, n_supports, one_class, post_transform, rho, support_vectors |
| Scaler | 1 | Rescales data. | offset, scale |
| TreeEnsemble | 5 | Regression values from an ensemble of trees. | aggregate_function, leaf_targetids, leaf_weights, membership_values, n_targets, nodes_falseleafs, nodes_falsenodeids, nodes_featureids, nodes_hitrates, nodes_missing_value_tracks_true, nodes_modes, nodes_splits, nodes_trueleafs, nodes_truenodeids, post_transform, tree_roots |
| TreeEnsembleClassifier | 5 | Deprecated: the top class of an ensemble of trees. Use TreeEnsemble with ArgMax. | base_values, class_ids, class_nodeids, class_treeids, class_weights, classlabels_int64s, classlabels_strings, nodes_falsenodeids, nodes_featureids, nodes_hitrates, nodes_missing_value_tracks_true, nodes_modes, nodes_nodeids, nodes_treeids, nodes_truenodeids, nodes_values, post_transform, and the _as_tensor forms of the numeric lists |
| TreeEnsembleRegressor | 5 | Deprecated: use TreeEnsemble. Regression from an ensemble of trees. | aggregate_function, base_values, n_targets, nodes_falsenodeids, nodes_featureids, nodes_hitrates, nodes_missing_value_tracks_true, nodes_modes, nodes_nodeids, nodes_treeids, nodes_truenodeids, nodes_values, post_transform, target_ids, target_nodeids, target_treeids, target_weights, and the _as_tensor forms |
| ZipMap | 1 | Makes a map from input values and given keys. | classlabels_int64s, classlabels_strings |
Removed experimental operators
Early releases of ONNX had experimental operators in the default domain. They were
removed from the specification, but a model of that time may still use them; the
explorer names them as removed. The list is from Operators.md at ONNX
1.4.1; ConstantFill was removed later.
| Operator | What it did | Attributes |
|---|---|---|
| ATen | Ran a PyTorch ATen operator, named in its attributes. | operator |
| Affine | alpha × x + beta, element by element. | alpha, beta |
| ConstantFill | A tensor filled with a constant. | dtype, extra_shape, input_as_shape, shape, value |
| Crop | Cropped an image by borders. | border, scale |
| DynamicSlice | Slice with starts and ends as inputs. | |
| GRUUnit | One step of a GRU. | drop_states |
| GivenTensorFill | A tensor of given values. | extra_shape, input_as_shape, shape, values |
| ImageScaler | Scaled an image and added a bias per channel. | bias, scale |
| ParametricSoftplus | alpha × ln(exp(beta × x) + 1). | alpha, beta |
| Scale | Multiplied by a scalar. | scale |
| ScaledTanh | alpha × tanh(beta × x). | alpha, beta |
What the attributes mean
Every attribute name used by the operators above, with its meaning. A name means the same in every operator that has it, except where the row names an operator. The exact type, default and limits of each are in the operator’s document.
| Name | Meaning |
|---|---|
| activation | The fused activation function. |
| activation_alpha, activation_beta | Alpha and beta of the activation functions, where they take them. |
| activations | The activation functions of the recurrent cell. |
| aggregate_function | How the trees’ scores combine. |
| align_corners | Whether corner pixels are the grid’s extreme points. |
| allowzero | Whether a 0 in the shape means size 0 rather than keeping the input’s size. |
| alpha, beta, gamma, bias, lambd | The coefficients of the operator’s formula. |
| antialias | Whether to antialias when downscaling. |
| approximate | Which Gelu formula: exact or tanh. |
| auto_pad | How padding is worked out. |
| axis, axes | The axis or axes to act on; negative counts from the last. |
| base_values, base_values_as_tensor | Starting values added to the result, one per class or target. |
| batch_axis, time_axis | The axes of the batch and of time. |
| batch_dims | How many leading dimensions are batch dimensions. |
| block_size | The size of the blocks for blocked quantisation. |
| blocksize | The side of the blocks moved between depth and space. |
| body | The subgraph to run. |
| border | Crop: the borders to remove. |
| broadcast | Opsets before 7: whether the second input is broadcast. |
| case_change_action | Change strings to LOWER, UPPER or NONE. |
| cast_to | CastMap: what the map is converted to. |
| cats_int64s, cats_strings | The categories. |
| ceil_mode | Whether to use ceiling rather than floor for the output shape. |
| center_point_box | Box format: corners (0) or centre and size (1). |
| chunk_size | Chunk size for parallel prefill; a tuning hint. |
| class_ids, class_nodeids, class_treeids, class_weights, class_weights_as_tensor | For each leaf weight: its class, leaf, tree and weight. |
| classlabels_int64s, classlabels_ints, classlabels_strings | The class labels. |
| clip | The recurrent cell’s clipping threshold. |
| coefficients, intercepts | The weights and constants of the model. |
| consumed_inputs | Opsets before 6: a legacy hint naming inputs that are consumed. |
| coordinate_transformation_mode | How output coordinates map to input coordinates. |
| count_include_pad | Whether padded elements count in the average. |
| cubic_coeff_a | The coefficient of cubic interpolation. |
| decay_factor | The decay of the learning rate. |
| default_float, default_int64, default_string, default_tensor | The value when no key matches. |
| delimiter, maxsplit | The string to split on (empty: runs of whitespace) and the largest number of splits. |
| detect_negative, detect_positive | Which infinities to count. |
| dilations | The spacing between kernel elements along each axis. |
| direction (BitShift) | Required. RIGHT moves the bits of each element of X towards the least significant end, LEFT towards the most significant end, by the amount in the same position of Y. |
| direction (GRU, LSTM, RNN) | Which way the sequence is run: forward (the default), reverse or bidirectional (both, which gives two directions in the outputs). |
| drop_states | GRUUnit: whether to drop the hidden state at the end of a sequence. |
| dtype, output_datatype, output_dtype, to | A TensorProto.DataType: the type of the output. The explorer shows the type’s name. |
| else_branch, then_branch | The subgraphs run when a condition is false or true. |
| ends, starts | Slice before opset 10: where each slice ends and starts. |
| epsilon | A small constant that keeps the arithmetic stable. |
| equation | The Einstein summation equation. |
| exclude_outside, extrapolation_value | Whether weights outside the tensor are dropped, and the value used outside it. |
| exclusive, reverse | Whether an element is left out of its own running total, and whether to run backwards. |
| extra_shape, input_as_shape | Removed fill operators: dimensions added to the shape, and whether the input gives it. |
| fmod | Whether to use C fmod rather than Python mod. |
| format | DequantizePacked: the block layout of the bytes. |
| group, num_groups | How many groups the channels form. |
| height_scale, width_scale | Upsample at opset 1: the scales. |
| hidden_size | The number of units in the hidden layer. |
| high, low, mean, seed | Parameters of a random distribution and its seed. |
| ignore_index | A target value that is ignored. |
| imputed_value_floats, imputed_value_int64s, replaced_value_float, replaced_value_int64 | The values to put in, and the value they replace. |
| input_forget | Whether an LSTM couples its input and forget gates. |
| inputdimensions | The size of each input. |
| int64_vocabulary, string_vocabulary | The keys, in output order. |
| interleaved | Whether adjacent elements pair up rather than splitting in halves. |
| inverse, onesided | Whether to compute the inverse transform, and to return only the non-redundant half. |
| is_case_sensitive, locale, stopwords | How stop words are compared and removed. |
| is_causal | Whether causal masking is applied. |
| is_test | Opsets before 7: inference mode. |
| k | Which diagonal holds the ones. |
| keep_aspect_ratio_policy | How a size interacts with the aspect ratio. |
| keepdims | Whether reduced dimensions stay, with size 1. |
| kernel_params, kernel_type | The SVM kernel and its gamma, coef0 and degree. |
| kernel_shape | The size of the kernel along each axis. |
| keys_floats, keys_int64s, keys_strings, keys_tensor, values_floats, values_int64s, values_strings, values_tensor | The keys to match and the value for each. |
| kv_num_heads, q_num_heads, num_heads | The numbers of key/value and query heads. |
| largest, sorted | Whether to take the largest, and whether results are sorted. |
| layout | Input order: 0 sequence first, 1 batch first. |
| leaf_targetids, leaf_weights | The output each leaf feeds and its weight. |
| left_window_size, right_window_size | How far left and right of a query attention may look; −1 for all. |
| linear_before_reset | Whether a GRU applies its linear transform before the reset gate. |
| map_form, max_map | CastMap: DENSE or SPARSE output, and the highest key used. |
| max_gram_length, min_gram_length, max_skip_count, ngram_counts, ngram_indexes, pool_int64s, pool_strings, weights | TfIdfVectorizer’s n-gram sizes, skips, the pool of n-grams and their weights. |
| membership_values | The values a tree node treats as members of a set. |
| mode (Pad) | What the padding is filled with: constant (the default), reflect, edge or wrap. |
| mode (Resize, Upsample, GridSample) | The interpolation. Resize: nearest (the default), linear, cubic. Upsample: nearest or linear. GridSample: see its values below. |
| mode (DepthToSpace) | The order depth is rearranged into blocks: DCR (the default) or CRD. |
| mode (RoiAlign) | How the sampled points of each bin are pooled: avg (the default) or max. |
| mode (TfIdfVectorizer) | Required: the weighting, TF, IDF or TFIDF. |
| mode (Momentum) | Required: standard momentum or nesterov momentum. |
| mode (TensorScatter) | How the cache is written: linear (the default; needs write_indices + sequence_length ≤ max_sequence_length) or circular (the index wraps round max_sequence_length). |
| momentum | How fast running statistics update. |
| multi_class | Whether more than one class can be predicted. |
| n_supports, one_class, prob_a, prob_b, rho, support_vectors, vectors_per_class | The SVM’s support vectors and decision constants. |
| n_targets, targets | The number of outputs per input. |
| nearest_mode | How nearest-neighbour sampling rounds. |
| new_axis | Whether to join along a new axis. |
| nodes_falseleafs, nodes_falsenodeids, nodes_featureids, nodes_hitrates, nodes_hitrates_as_tensor, nodes_missing_value_tracks_true, nodes_modes, nodes_nodeids, nodes_splits, nodes_trueleafs, nodes_treeids, nodes_truenodeids, nodes_values, nodes_values_as_tensor | For each tree node: where its branches go, which feature it tests, how it tests, the threshold, and how often it is reached. |
| noop_with_empty_axes | Whether empty axes mean doing nothing rather than all axes. |
| norm | MAX, L1 or L2. |
| norm_coefficient, norm_coefficient_post | Regularisation coefficients of an optimiser. |
| num_outputs | How many outputs to produce. |
| num_scan_inputs, scan_input_axes, scan_input_directions, scan_output_axes, scan_output_directions | Which inputs Scan scans, along which axes and in which direction. |
| offset | Scaler: the amount subtracted first. |
| operator | ATen: the operator to run. |
| output_height, output_width, sampling_ratio | RoiAlign’s output size and sampling points. |
| output_padding, output_shape | ConvTranspose’s extra output padding and output shape. |
| output_sequence | Recurrent cells at opset 1: whether all hidden states are output. |
| p | The order of the norm. |
| pads | Padding at the start and end of each axis. |
| padding_mode | How positions outside the grid are filled. |
| pattern | The regular expression, in RE2 syntax. |
| perm | The new order of the dimensions. |
| periodic | Whether a window is periodic rather than symmetric. |
| pixel_format | The pixel format of the output. |
| pool_shape, roi_scale | MaxRoiPool’s output size and spatial scale. |
| post_transform | What to apply to the scores. |
| precision, softmax_precision, stash_type | The precision used for part of the calculation. |
| prob_mod, score_mod | FlexAttention’s subgraphs that modify probabilities and scores. |
| qk_matmul_output_mode | Which stage of the attention scores Attention’s optional fourth output holds (integer codes below). |
| reduction | Scatters: how an update combines with the value already there. Losses: how the per-element losses combine into the output. |
| rotary_embedding_dim | How many dimensions to rotate; 0 for the whole head. |
| round_mode | Cast (opset 24 on; Changelog.md lists it first in Cast-24, and Cast-25 and Cast-28 repeat it): how values are rounded when cast to FLOAT8E8M0, and to no other type; up by default. |
| saturate | Whether out-of-range values saturate when converting to an 8-bit float. |
| scale | Attention: the factor on Q·Kᵀ, 1 ÷ √head_size by default. RandomNormal and RandomNormalLike: the standard deviation. Scale (removed) and ImageScaler: the factor applied to every value. Scaler (ai.onnx.ml): the factor for each feature, after offset is subtracted. Crop: the height and width of the crop. |
| scales | Upsample: the scale of each dimension. |
| select_last_index | Whether to pick the last occurrence of the extreme value. |
| shape | The shape of the output. |
| size | LRN: the number of channels summed over. |
| softcap | A limit on attention logits; 0 turns it off. |
| spatial | BatchNormalization before opset 9: statistics per channel only. |
| split | Split before opset 13: the length of each piece. |
| storage_order | The storage order of MaxPool’s output indices. |
| strides | The step of the window along each axis. |
| target_ids, target_nodeids, target_treeids, target_weights, target_weights_as_tensor | For each leaf weight: its output, leaf, tree and weight. |
| threshold | Values above this become 1. |
| training_mode | Whether the model is training. |
| transA, transB | Whether to transpose A or B first. |
| tree_roots | The root node of each tree. |
| type | Optional: the type of an empty value. |
| update_rule | Which recurrence LinearAttention runs. |
| upper | Whether to keep the upper triangle. |
| value, value_float, value_floats, value_int, value_ints, value_string, value_strings, sparse_value, values | The constant. |
| xs, y, zs | Gradient: the inputs to differentiate with respect to, the output, and inputs held constant. |
| zeros | Whether an unknown category gives all zeros rather than an error. |
String codes in attributes
| Attribute | Values |
|---|---|
| auto_pad | NOTSET use pads; SAME_UPPER pad so the output is input ÷ stride, extra at the end; SAME_LOWER the same, extra at the start; VALID no padding. |
| coordinate_transformation_mode | half_pixel, half_pixel_symmetric, pytorch_half_pixel, align_corners, asymmetric, tf_crop_and_resize. |
| nearest_mode | round_prefer_floor, round_prefer_ceil, floor, ceil. |
| mode (Pad) | constant, reflect, edge, wrap. |
| mode (Resize, Upsample) | nearest, linear, cubic (Resize only). |
| mode (GridSample) | linear, nearest, cubic; at opset 16 bilinear, nearest, bicubic. |
| mode (DepthToSpace) | DCR, CRD. |
| mode (RoiAlign) | avg, max. |
| mode (TfIdfVectorizer) | TF, IDF, TFIDF. |
| mode (Momentum) | standard, nesterov. |
| mode (TensorScatter) | linear, circular. |
| padding_mode | zeros, border, reflection. |
| reduction (ScatterElements, ScatterND) | none the update replaces the value; add; mul; max; min. |
| reduction (NegativeLogLikelihoodLoss, SoftmaxCrossEntropyLoss) | none one loss per element; sum; mean the weighted mean. |
| post_transform (strings, all but TreeEnsemble) | NONE, SOFTMAX, LOGISTIC, SOFTMAX_ZERO, PROBIT. |
| nodes_modes (TreeEnsembleClassifier, TreeEnsembleRegressor) | BRANCH_LEQ, BRANCH_LT, BRANCH_GTE, BRANCH_GT, BRANCH_EQ, BRANCH_NEQ, BRANCH_MEMBER, LEAF. |
| aggregate_function (TreeEnsembleRegressor) | AVERAGE, SUM, MIN, MAX. |
| activations (LSTM, GRU, RNN) | A list, one name per gate function: Relu, Tanh, Sigmoid (every runtime has these); optional Affine, LeakyRelu, ThresholdedRelu, ScaledTanh, HardSigmoid, Elu, Softsign, Softplus, which take their alpha and beta from activation_alpha and activation_beta in the same order. |
| round_mode (Cast) | up (the nearest value away from zero), down (the nearest value towards zero), nearest (the nearest value, ties rounding up). |
| cast_to (CastMap) | TO_FLOAT, TO_STRING, TO_INT64. |
| kernel_type | LINEAR, POLY, RBF, SIGMOID. |
| norm | MAX, L1, L2. |
| case_change_action | LOWER, UPPER, NONE. |
| keep_aspect_ratio_policy | stretch, not_larger, not_smaller. |
| approximate | none, tanh. |
| pixel_format | RGB, BGR, Grayscale. |
| direction (GRU, LSTM, RNN) | forward, reverse, bidirectional. |
| direction (BitShift) | LEFT, RIGHT. |
| activation (CausalConvWithState) | none, silu, swish. |
| update_rule | linear, gated, delta, gated_delta. |
The explorer adds the value’s meaning to the note on an attribute’s s
field and on each entry of a strings list, and shows data-type
attributes by the type’s name.
Integer codes in attributes
A few attributes hold a code as an integer (i), or as a tensor of
integers, rather than a string.
| Attribute | Values |
|---|---|
| aggregate_function (TreeEnsemble) | 0 AVERAGE, 1 SUM (the default), 2 MIN, 3 MAX. |
| post_transform (TreeEnsemble) | 0 NONE (the default), 1 SOFTMAX, 2 LOGISTIC, 3 SOFTMAX_ZERO, 4 PROBIT. |
| nodes_modes (TreeEnsemble) | A uint8 tensor, one code per node: 0 BRANCH_LEQ, 1 BRANCH_LT, 2 BRANCH_GTE, 3 BRANCH_GT, 4 BRANCH_EQ, 5 BRANCH_NEQ, 6 BRANCH_MEMBER. There is no LEAF code: nodes_trueleafs and nodes_falseleafs say which branches end in a leaf. |
| qk_matmul_output_mode (Attention) | 0 the raw Q·Kᵀ product (the default), 1 after softcap and before the bias, 2 Q·Kᵀ with softcap and bias, 3 the probabilities after softmax. |
The explorer adds the meaning to the note on the attribute’s i field.
Versioning
A model selects operator definitions by its opset_import: for each domain,
an operator means the definition in force at the version named there. An operator
changed in opset 22 still means its old definition in a model that imports opset 13.
The explorer does not know the historical definitions: it gives each operator’s
latest description and its attribute names as listed above, which earlier opsets may
differ from in detail (for example Slice’s bounds moved from attributes to
inputs at opset 10, and axes attributes became inputs at opsets 13 and
18). For an operator’s exact inputs, outputs and types at a given opset, see ONNX’s
Operators.md and
Changelog.md.