Thanks for looking. Its part of System.Numerics.Tensors and is needed to create a new tensor. It expects Memory<T>Data, IReadOnlySpan<int>Dimensions
, so this merked the WIP Onnx with Gamma 2019.2
When you mentioned that this is tricky to fix I figured I’ll might to break my golden rule.
My wrapper is this so far:
namespace VL.ONNX
{
public class OnnxTensorsVL<T>
{
public static Tensor<T> CreateNewTensor(string Name, Memory<T> InputData, int[] Dimensions)
{
var DimSpan = new ReadOnlySpan<int>(Dimensions);
return new DenseTensor<T>(InputData, DimSpan);
}
}
}