-
The @corefx team has created the Tensors are basically as n-dimensional arrays and are extensively used in Neural Networks. A significant portion of Neural Networks has images as its input. I expect these datatypes to gain more traction quite quickly, given all the attention to Machine Learning in the media. Microsoft started off, by using these types in their own ONNX runtime library. Would it be an good addition to ImageSharp to be able to convert to and from these Tensor types? If so, would you like to add this to the Core library, or go with a seperate package, like ImageSharp.Textures? I'll be happy to author or contribute either way. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
While the ImageSharp maintainers have the final say here, this namespace is experimental and not stable. It is not something that should be used or consumed from stable libraries and we are very likely to change the surface, potentially substantially, before System.Numerics.Tensors actually ships non-experimentally. |
Beta Was this translation helpful? Give feedback.
-
OK, wasn't aware of all that! I gues you guys are still open for API related feedback then? I'll play around with the code some more and will file some issues on your Github page, if you like. Btw, this also answers my original question: |
Beta Was this translation helpful? Give feedback.
-
In case anyone else stumbles across this. I was able to eventually figure out a way with assistance from Microsoft. Below is a link to the model that will work significantly faster. We went from approx. 11.2 seconds per batch, to approx. 0.3 seconds per batch |
Beta Was this translation helpful? Give feedback.
OK, wasn't aware of all that!
I gues you guys are still open for API related feedback then? I'll play around with the code some more and will file some issues on your Github page, if you like.
Btw, this also answers my original question:
System.Numerics.Tensors
is not a likely addition to ImageSharp any time soon due to its unstable API.