Consider Stack Overflow for getting support using TensorBoard—they have
a larger community with better searchability:
https://stackoverflow.com/questions/tagged/tensorboard
Do not use this template for for setup, installation, or configuration
issues. Instead, use the “installation problem” issue template:
https://github.com/tensorflow/tensorboard/issues/new?template=installation_problem.md
To report a problem with TensorBoard itself, please fill out the
remainder of this template.
Please run diagnose_tensorboard.py (link below) in the same
environment from which you normally run TensorFlow/TensorBoard, and
paste the output here:
For browser-related issues, please additionally specify:
Please describe the bug as clearly as possible. How can we reproduce the
problem without additional resources (including external data files and
proprietary Python modules)?
When I use profiler APIs:
# Context manager APIs
with tf.python.eager.profiler.Profiler('logdir_path'):
# do your training here
pass
# Function APIs
tf.python.eager.profiler.start()
# do your training here
profiler_result = tf.python.eager.profiler.stop()
tf.python.eager.profiler.save('logdir_path', profiler_result)
It comes with the error: tensorflow has no attribute 'python'
Please see https://github.com/tensorflow/tensorflow/issues/34823
Briefly-- the docs are mistaken in that the Profiler API is not currently exposed; updating both the API and the docs is in the works. In the meantime, please try this:
from tensorflow.python.eager import profiler
with profiler.Profiler('logdir_path'):
pass
Most helpful comment
Please see https://github.com/tensorflow/tensorflow/issues/34823
Briefly-- the docs are mistaken in that the Profiler API is not currently exposed; updating both the API and the docs is in the works. In the meantime, please try this: