tool for checking the computation time of the tensorflow model
tool for checking the computation time of the tensorflow model
postd in 2019
postd in 2019
(tool 1 ) : Profiler Tool
#To get memory information, you need --graph_path and --run_meta_path
tfprof> graph -max_depth 10000000 -step 0 -account_type_regexes .* -output timeline:outfile=<filename>
generating trace file.
reference: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/profiler/g3doc/profile_time.md
(tool 2 ) : Benchmark Tool
bazel-bin/tensorflow/tools/benchmark/benchmark_model \
--graph=tensorflow_inception_graph.pb \
--input_layer="input:0" \
--input_layer_shape="1,224,224,3" \
--input_layer_type="float" \
--output_layer="output:0"
reference: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/benchmark