Open phildow opened 3 years ago
Ordering is in fact an issue and the order of the inputs does not match the order of the inputs as described by the saved_model_cli.
The simplest solution is just to require the consumer to order correctly, since even just figuring out the names can be a hassle. not sure what tool is available for getting indices in tf lite models though.
As reported in https://github.com/doc-ai/tensorio-ios/issues/225 I'm seeing a number of these errors in a model we're using:
Hypothesis 2: Indices in the JSON are out of order and I'm trying to write float32s to inputs that expected int64s
I take the order of the inputs from the saved_model_cli and have always assumed this is the order they will be in TF Lite as well, but I don't actually know if that's the case or how to check input indices. Would be nice if we could reference these by name.