Open jannickj opened 2 years ago
To any unfortunate soul who've had to deal with the same issue, I finally figured it out. 2d Arrays are not supported in dotnet ml, you're supposed to flatten the arrays yourself ><
@jannickj sorry for the confusion about this. This is something that we are discussing. As we are working on adding TorchSharp support to ML.NET, this will probably become a larger issue, so we are planning on revisiting this and discussing it again in the future.
I think a simple fix for now would just be to throw an exception that says multidimensional arrays are not supported the problem is null exception makes figuring it out very obscure.
Ok so just to clarify. If I load tf model to ml.net that needs as input matrix [,] will I get proper output?
Any news on that? I'm workint in a POC for a customer. I have a tensortflow model (N,160,6) but Im not able to input an array. How can I do that?
@julianogimenez you just have to squeze your multidim array into a single dim array i.e from (N, 160, 6) -> (N 160 6,)
I have a fully working tensorflow model and I litterally just need the last step of having C# run my model, but I am stuck on a null exception.
I have a very simple setup, and I've locked down both sequence length and batch size, however no matter what i do it gives me the exception:
I have tested that the model works in python and I've made 100% sure the dimensions fit exactly.