I am using a tensorflow lite model created in Azure Custom Vision. The model returns a tensor consisting of 4 lists .
Here is my output specification
final output = {
0: List<List<num>>.filled(64, List<num>.filled(4, 0)),
1: List<num>.filled(64, 0),
// 1: List<Int64>.filled(64, Int64(0)),
2: List<num>.filled(64, 0),
3: [0.0],
};
This works, but the values returned for the dict item 1, is supposed to be an int64, not an int. So the returned values are consistent, but messed up, e.g. 72057594037927936, instead of a 1.
When I try to use the commented out prefill of the dict item 1, i.e. List.filled(64, Int64(0)), where Int64 is defined in package:fixnum/fixnum.dart, it fails with the following message:
"type 'int' is not a subtype of type 'Int64' of 'value'"
How can I get the correct int values for a detected class, e.g. 1 instead of 72057594037927936?
Any advice would be highly appreciated.
Thanks,
Patrik
I tried to prepare the output tensor like so: List.filled(64, Int64(0)),