We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9660a commit 4cf52d8Copy full SHA for 4cf52d8
src/Microsoft.ML.OnnxTransform/OnnxUtils.cs
@@ -342,11 +342,8 @@ public static void CopyTo<T>(Tensor tensor, T[] dst)
342
{
343
if (typeof(T) == typeof(System.Single))
344
345
- // Sonoma only takes List<T>. We need to do an extra copy to T[]
346
- var listDst = new List<System.Single>();
347
var typedDst = (System.Single[])(object)dst;
348
- tensor.CopyTo(listDst);
349
- listDst.CopyTo(typedDst);
+ tensor.CopyTo(typedDst);
350
}
351
else
352
throw new NotImplementedException($"Not implemented type {typeof(T)}");
0 commit comments