ai.onnx.ml - CastMap#
CastMap - 1#
Version
name: CastMap (GitHub)
domain: ai.onnx.ml
since_version: 1
function:
support_level: SupportType.COMMON
shape inference: True
This version of the operator has been available since version 1 of domain ai.onnx.ml.
Summary
Attributes
cast_to - STRING : A string indicating the desired element type of the output tensor, one of ‘TO_FLOAT’, ‘TO_STRING’, ‘TO_INT64’.
map_form - STRING : Indicates whether to only output as many values as are in the input (dense), or position the input based on using the key of the map as the index of the output (sparse).<br>One of ‘DENSE’, ‘SPARSE’.
max_map - INT : If the value of map_form is ‘SPARSE,’ this attribute indicates the total length of the output tensor.
Inputs
X (heterogeneous) - T1:
Outputs
Y (heterogeneous) - T2:
Type Constraints
T1 in ( map(int64, float), map(int64, string) ): The input must be an integer map to either string or float.
T2 in ( tensor(float), tensor(int64), tensor(string) ): The output is a 1-D tensor of string, float, or integer.
Examples