Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix absl flag initialization in cloud_tpu_profiler #14426

Merged
merged 1 commit into from
Nov 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,18 @@

import tensorflow as tf


tf.flags.DEFINE_string('service_addr', '',
'Address of TPU profiler service e.g. localhost:8466')


tf.flags.DEFINE_string('logdir', '',
'Path of TensorBoard log directory e.g. /tmp/tb_log')


tf.flags.DEFINE_integer('duration_ms', 2000, 'Duration of tracing in ms.')


FLAGS = tf.flags.FLAGS
EXECUTABLE = 'data/capture_tpu_profile'


EXECUTABLE = 'data/capture_tpu_profile'
def run_main():
tf.app.run(main)


def main(unused_argv=None):
Expand All @@ -54,4 +50,4 @@ def main(unused_argv=None):


if __name__ == '__main__':
tf.app.run(main)
run_main()
2 changes: 1 addition & 1 deletion tensorflow/contrib/tpu/profiler/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
_VERSION = '1.3.0-a1'

CONSOLE_SCRIPTS = [
'capture_tpu_profile=cloud_tpu_profiler.main:main',
'capture_tpu_profile=cloud_tpu_profiler.main:run_main',
]

REQUIRED_PACKAGES = [
Expand Down