How to output the data from tensorboard?
Young768 opened this issue · comments
Hi, TF experts
I want to profile and analyze the execution time for each iteration using tensorboard. Can I read the data from tensorboard? For example, I want to save the step-time information to a CSV file.
Hi,
Can you provide the following information:
(1) Are you using Keras? or Estimator?
(2) Which TF version are you using?
Thanks,
-ck
…On Tue, May 12, 2020 at 2:42 PM Donglin Yang ***@***.***> wrote:
Hi, TF experts
I want to profile and analyze the execution time for each iteration using
tensorboard. Can I read the data from tensorboard? For example, I want to
save the step-time information to a CSV file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#17>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE33L3K7CBQYUB7P6IZYX5DRRG7ENANCNFSM4M7GG7NQ>
.
Keras on TF-nightly
I don't think that TensorBoard gives you the step time.
I can see a couple of options:
(1) If what you need is simply step time, you can add a Keras custom
callback (https://www.tensorflow.org/guide/keras/custom_callback) to print
the timestamp at each step to a file. Then you can write a script to
convert the step times to CSV from this file.
(2) You can also use the new TF2 profile (
https://www.tensorflow.org/guide/profiler). It has a step-time graph.
However, it currently doesn't have an option to output the statistics to a
file. So, it won't be easy for you to generate a CSV file automatically
(although it is possible by writing a script to parse the JSON file which
contains the profiling data).
…On Tue, May 12, 2020 at 3:48 PM Donglin Yang ***@***.***> wrote:
Keras on TF-nightly
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE33L3PAZO2NX4SFUI2RTZTRRHG5RANCNFSM4M7GG7NQ>
.
@ckluk Yep, what I mean is the profiler. I thought that profiler is the part of tensorboard. Sorry for the confusion. I will try these two options.
I have one more question. For option one, what if I use Estimator? is there any callback like keras?
I think you can use the SessionRunHook in Estimator, such as this one:
https://www.tensorflow.org/api_docs/python/tf/estimator/StepCounterHook
…On Tue, May 12, 2020 at 4:44 PM Donglin Yang ***@***.***> wrote:
I have one more question. For option one, what if I use Estimator? is
there any callback like keras?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE33L3PYDZKJLF5N2AAN3ODRRHNOPANCNFSM4M7GG7NQ>
.