Closed yann-pourcenoux closed 3 years ago
Tensor index can be easily verified if you add a print statement in the HasDynamicTensorImpl
function...
I am sorry but I do not find any documentation about this function. Could you please tell me where it is defined/how can I use it?
The problem was that I indeed had a "hidden" dynamic-sized tensor. Changing from:
indices = tf.where(cond)
count = tf.shape(indices)[0]
to:
count = tf.math.reduce_sum(tf.where(cond, 1, 0))
fixed the problem.
System information
Describe the current behavior When I am running the TFLite benchmark on my phone with my model I get the following error
ERROR: Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors.
when I try to run on GPU although every tensor are in static size.Describe the expected behavior I took care of having static-sized tensors everywhere so I expect to be able to run the model fully on GPU.
Standalone code to reproduce the issue The network can be downloaded [removed].
I run the benchmark which can be downloaded from Tensorflow here. I run it with the following commands
Regarding conversion, I am converting my model using this script: