Closed harshitmahapatra closed 1 year ago
Oops! Thanks for catching this. I'll fix this shortly.
No worries! Thanks a lot for the really nice project :).
Just published windows_ai
v0.0.2+1
.
Thanks a lot, I just tested it and can confirm it works!
Is there an existing issue for this?
On which packages did you experience this issue?
windows_ai
What version are you using?
windows_ai: 0.0.2
What happened?
Creating a tensor of type float or double (using the TensorFloat or TensorDouble class) and calling getAsVectorView() throws exception.
Steps to reproduce
Supporting info to reproduce
Upon looking at the
IVectorView.fromPtr
factory inivectorview.dart
inwindows_foundation
, it seems that the error happens because the factory can handle bool, Guid, int, String and Uri, but has no method fordouble
.This is also seems to be the case when looking at the
ivectorview_part.dart
in the same package, as the said file does not ivectorview class for double type.Relevant log output
Flutter analyze output
Flutter doctor output
Code of Conduct