tf.compat.v1.profiler.profile

View source on GitHub

Profile model.

tf.compat.v1.profiler.profile(
    graph=None, run_meta=None, op_log=None, cmd='scope',
    options=_DEFAULT_PROFILE_OPTIONS
)

Tutorials and examples can be found in: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/README.md

Args:

Returns:

If cmd is 'scope' or 'graph', returns GraphNodeProto proto. If cmd is 'op' or 'code', returns MultiGraphNodeProto proto. Side effect: stdout/file/timeline.json depending on options['output']