profile
viewpoint

Ask questionsCannot see per operator profiling in android studio with tensorflow lite models

URL(s) with the issue:

Please provide a link to the documentation entry, for example:

https://www.tensorflow.org/lite/performance/measurement#adding_trace_events_in_java_code

https://www.tensorflow.org/lite/performance/images/as_traces.png

Description of issue (what needs changing):

I've added the trace sections to the code around the interpreter.run() command. When I start to profile the app I cannot see the per operator profiling as we can see in the second link.

Clear description

This will help us in seeing how much time is being taken by each layer in the tflite model and we can change our models according to that.

My Code

Trace.beginSection("runInference");
 tflite_sr.run(ybuffer,sr_y_channel);
 Trace.endSection(); 
tensorflow/tensorflow

Answer questions renjie-liu

Hi Xunkai & Lu, can you guys take a look?

thanks

useful!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 9
Tf.Keras metrics issue hot 8
Error occurred when finalizing GeneratorDataset iterator hot 7
Error loading tensorflow hot 6
module 'tensorflow' has no attribute 'ConfigProto' hot 6
TF 2.0 'Tensor' object has no attribute 'numpy' while using .numpy() although eager execution enabled by default hot 6
tensorflow-gpu CUPTI errors
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning.
ModuleNotFoundError: No module named 'tensorflow.contrib'
When importing TensorFlow, error loading Hadoop
OSError: SavedModel file does not exist at: saved_model_dir/{saved_model.pbtxt|saved_model.pb}
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list'
tf.keras.layers.Conv1DTranspose ?
[TF 2.0] tf.keras.optimizers.Adam hot 4
TF2.0 AutoGraph issue hot 4
source:https://uonfu.com/
Github User Rank List