Repository navigation
C# Tensor Extensions #25893
Replies: 2 comments
|
Hi, If you mean the A few options:
Are you looking specifically for extensions that operate directly on ONNX Runtime’s If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
|
For a .NET 10 project, another option is Microsoft's System.Numerics.Tensors package. It has using NumericsTensor = System.Numerics.Tensors.Tensor;
float[] data = [0, 1, 2, 3, 4, 5];
var t = NumericsTensor.Create(data, [2, 3]);
var p = NumericsTensor.PermuteDimensions(t, [1, 0]);
float[] flat = new float[6];
p.FlattenTo(flat);
// p has shape [3, 2]; flat contains [0, 3, 1, 4, 2, 5].These operate on The higher-level tensor APIs became stable with .NET 10. The released permutation implementation supports arbitrary axis ordering. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Are there any libraries that provide extensions to the tensor class that implement standard functions like
permuteorflatten, etc. for C# ?All reactions