Closed
Description
openedon Jul 23, 2019
System information
Windows 10 -
.NET Core 2 - ML.NET 1.2
Issue
Is there any timeline for allowing string tensors to be used in Onnx models within ML.NET? Tried both InferenceSession and pipeline ApplyOnnxModel and keep hitting in the
public static NamedOnnxValue CreateNamedOnnxValue(string name, ReadOnlySpan data, OnnxShape shape)
{
if (!_onnxTypeMap.Contains(typeof(T)))
throw new NotImplementedException($"Not implemented type {typeof(T)}");
return NamedOnnxValue.CreateFromTensor(name, new DenseTensor(data.ToArray(), shape.Select(x => (int)x).ToArray()));
}
Because onnxTypeMap does not support string.
My OnnxModel takes input of string and output of long+float.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment