1. 04 Jun, 2018 1 commit
    • Taylor Robie's avatar
      First pass at a TPU loop for Transformer (#4296) · 2eeb85fe
      Taylor Robie authored
      * port changes from previous branch now that transformer util changes are in master
      
      fix incorrect count
      
      correct (hopefully) treatment of batch_size
      
      set eval_metrics to a dummy function for now
      
      add some comments
      
      start bringing metrics to transformer TPU
      
      resolve logits shape
      
      metrics are now working except for tf.py_func metrics
      
      increase batch_size for tpu, and create summary host call
      
      fix host call
      
      reduce tpu default batch size
      
      further tune batch sizes
      
      add minibatch loss to summary
      
      handle case of single_iteration_train_steps > number points in an epoch
      
      begin to incorporate hooks
      
      add sleep workarounds
      
      disable hooks altogether
      
      generalize host call function and move to newly created tpu utils module
      
      remove all traces of params as an object
      
      switch from  to
      
      address some PR comments, and change the number of data points.
      
      minor tweaks
      
      add tpu dry run for testing, and use matmul for TPU embedding
      
      infeed/outfeed queue issue is fixed. Sleeps are no longer necessary
      
      add some documentation.
      
      cleanup and address PR comments
      
      delint
      
      add accelerator __init__
      
      fix embedding
      
      missed PR comment
      
      address PR comments
      
      fix validator bug
      
      rewrite cloud storage validator, and add oauth dependency to requirements.txt
      
      * delint
      2eeb85fe
  2. 01 Jun, 2018 3 commits
    • Yanhui Liang's avatar
      Fix the hooks test comments (#4427) · 02571056
      Yanhui Liang authored
      02571056
    • Qianli Scott Zhu's avatar
      Add new test ID and test env info to the benchmark run. (#4426) · d2d6ab4c
      Qianli Scott Zhu authored
      * Add new test ID and test env info to the benchmark run.
      
      * Fix test.
      
      * Fix lint
      
      * Address review comment.
      d2d6ab4c
    • Qianli Scott Zhu's avatar
      Record the status for a benchmark run. (#4402) · 47c5642e
      Qianli Scott Zhu authored
      * Update benchmark logger to update the run status.
      
      This is important for streaming upload to bigquery so that the
      dashboard can ignore the 'running' benchmark at the moment since
      its not finished yet.
      
      * Move the run status into a separate table.
      
      Also update the run status in the benchmark uploader and
      BigqueryBenchmarkLogger.
      
      * Insert instead of update for the benchmark status for file logger.
      
      * Address review comments.
      
      Update the logger to have benchmark context, which will update the
      run status accordingly.
      
      * Fix broken tests.
      
      * Move the benchmark logger context to main function.
      
      * Fix tests.
      
      * Update the rest of the models to use the context in main.
      
      * Delint.
      47c5642e
  3. 30 May, 2018 1 commit
  4. 25 May, 2018 1 commit
    • Karmel Allison's avatar
      Fix/log ex per sec (#4360) · d626b908
      Karmel Allison authored
      * Using BenchmarkLogger
      
      * Using BenchmarkLogger
      
      * Fixing tests
      
      * Linting fixes.
      
      * Adding comments
      
      * Moving mock logger
      
      * Moving mock logger
      
      * Glinting
      
      * Responding to CR
      
      * Reverting assertEmpty
      d626b908
  5. 11 May, 2018 2 commits
    • Qianli Scott Zhu's avatar
      Add benchmark logger that does stream upload to bigquery. (#4210) · 0270cac7
      Qianli Scott Zhu authored
      * Move the benchmark_uploader to new location.
      
      * Update benchmark logger to streaming upload.
      
      * Fix lint and unit test error.
      
      * delint.
      
      * Update the benchmark uploader test.
      
      Skip the import of benchmark_uploader when bigquery is not installed.
      
      * Merge the 2 classes of benchmark uploader into 1.
      
      * Address review comments.
      
      * delint.
      
      * Execute bigquery upload in a separate thread.
      
      * Change to use python six.moves for importing.
      
      * Address review comments and delint.
      
      * Address review comment.
      
      Adding comment for potential performance impact for model on CPU.
      
      * Fix random failure on py3.
      
      * Fix the order of flag saver to avoid the randomness.
      
      The test is broken when the benchmark_logger_type is set first, and
      validated when the benchmark_log_dir is not set yet.
      0270cac7
    • Katherine Wu's avatar
  6. 08 May, 2018 1 commit
  7. 03 May, 2018 3 commits
  8. 01 May, 2018 1 commit
  9. 26 Apr, 2018 1 commit
  10. 20 Apr, 2018 1 commit
  11. 19 Apr, 2018 2 commits
  12. 12 Apr, 2018 1 commit
    • Taylor Robie's avatar
      Resnet distribution strategies (#3887) · 32aa6563
      Taylor Robie authored
      * begin transfer from contrib fork
      
      more changes to resnet_run_loop
      
      use AUTOTUNE in prefetch
      
      first pass at resnet with functional distribution strategies
      
      fix syntax error
      
      delint
      
      aesthetic tweaks
      
      delint and fix typos
      
      rip multi_gpu flag out of resnet entirely. Subject to saved model load verification
      
      update cifar10 and imagenet tests to reflect that the model function no longer need to know about multi_gpu
      
      fix imagenet test
      
      start addressing PR comments
      
      more PR response work
      
      * misc tweaks
      
      * add a comment
      
      * final pr tweaks
      
      * fix parsers
      32aa6563
  13. 10 Apr, 2018 3 commits
  14. 09 Apr, 2018 1 commit
  15. 03 Apr, 2018 2 commits
  16. 02 Apr, 2018 1 commit
  17. 29 Mar, 2018 1 commit
  18. 28 Mar, 2018 2 commits
    • Karmel Allison's avatar
      Add SavedModel export to Resnet (#3759) · eb73a850
      Karmel Allison authored
      * Adding export_dir and model saving for Resnet
      
      * Moving to utils for tests
      
      * Adding batch_size
      
      * Adding multi-gpu export warning
      
      * Responding to CR
      
      * Py3 compliance
      eb73a850
    • Qianli Scott Zhu's avatar
      Add benchmark upload util to Bigquery. (#3776) · 932364b6
      Qianli Scott Zhu authored
      * Add benchmark upload util to bigquery.
      
      Also update the benchmark logger and bigquery schema for the
      errors found during the integration test.
      
      * Fix lint error.
      
      * Update test to clear all the env vars during test.
      
      This was causing error since the Kokoro test has TF_PKG=tf-nightly
      injected during test.
      
      * Update lintrc to ignore google related package.
      
      * Another attempt to fix lint import error.
      
      * Address the review comment.
      
      * Fix lint error.
      
      * Another fix for lint.
      
      * Update test comment for env var clean up.
      932364b6
  19. 27 Mar, 2018 3 commits
    • Qianli Scott Zhu's avatar
      Update the importing logic for cpuinfo and psutil. (#3781) · 03781c74
      Qianli Scott Zhu authored
      * Update the importing logic for cpuinfo and psutil.
      
      Those two libs are usually not installed by default, and we should
      not force people to install them if they just want to run resnet.
      
      * Add pylint warning suppression.
      03781c74
    • Taylor Robie's avatar
      Add reference data tests to official. (#3723) · 587f5792
      Taylor Robie authored
      * Add golden test util to streamline symbolic and numerical comparison to reference graphs, and apply golden tests to ResNet.
      
      update tests
      
      use more concise logic for path property
      
      delint
      
      add some comments
      
      delint
      
      address PR comments
      
      make resnet tests more concise, and supress warning test in py2
      
      change resnet name template
      
      more shuffling of data dirs
      
      address PR comments and add tensorflow version info
      
      Remove subTest due to py2
      
      switch from tf.__version__ to tf.VERSION, and include tf.GIT_VERSION
      
      supress lint error from json load unpack
      
      * address PR comments
      
      * address PR comments
      
      * delint
      587f5792
    • Taylor Robie's avatar
      Add requirements.txt to official. (#3760) · 86cb0aa3
      Taylor Robie authored
      * add requirements.txt now that there are dependencies beyond tensorflow
      
      * direct pip info to README
      86cb0aa3
  20. 26 Mar, 2018 1 commit
    • Qianli Scott Zhu's avatar
      Benchmark run info logging (#3708) · d3952b2c
      Qianli Scott Zhu authored
      * Init test for logging benchmark run.
      
      * Fix collect CPU info.
      
      * Update max split for handling GPU information.
      
      * Another fix for parse GPU info.
      
      * Fix GPU and CPU info collector.
      
      * Update logging function to be static.
      
      * Remove the cifar10 logging and fix a lint error.
      
      * Address the review comment.
      
      * Fix lint error.
      
      * Fix lint error for logger and logger_test.
      
      * Another lint fix for the test.
      
      * Simplify the CPU info logging.
      
      We will start in a conserative way, and probably add more info in
      future.
      
      * Remove unused dependencies.
      d3952b2c
  21. 23 Mar, 2018 2 commits
    • Qianli Scott Zhu's avatar
    • Qianli Scott Zhu's avatar
      Resnet benchmark logging (#3704) · b9b44f7b
      Qianli Scott Zhu authored
      * Update reset model for benchmark logging.
      
      To enable benchmark logging, just add "--hooks LoggingMetricHook"
      
      * Benchmark logger fix for resnet.
      
      1. Update default at_end to False for metric logger to avoid
      checkpoint error.
      2. Update resnet run to log final evaluation result.
      
      * Update log output for final eval_result.
      
      * Typo fix.
      
      * Unset the default value for benchmark_log_dir.
      
      Usually the benchmark should be logged to different directly for
      each run. Having a default value will hide the choice from user.
      
      * Bug fix for benchmark logger initialization.
      
      * Fix lint error.
      
      * Address the review comment.
      
      1. Update the logger to cover evaluation result.
      2. Move the flag to performance parser.
      
      * Undo the change for arg_parser.
      b9b44f7b
  22. 21 Mar, 2018 2 commits
    • Qianli Scott Zhu's avatar
      Add session hook for benchmark metric logging. (#3672) · 4b85dab1
      Qianli Scott Zhu authored
      * Add session hook for benchmark metric logging.
      
      Current hook is very similar as the LoggingTensorHook. Some of the
      function are directly copied since the original one was not
      exposed for import. We should seek to eventually move this code to
      core when it is mature enough.
      
      * Update metric_hook to use LoggingTensorHook as base.
      
      The existing hook is similar enough to LoggingTensorHook, and
      we should eliminate duplicate as much as possible.
      
      * Address review comment.
      
      1. Update global step tensor handle.
      2. Update tests.
      3. Update document.
      
      * Update tests for py3.
      
      * Fix lint error
      4b85dab1
    • Karmel Allison's avatar
      Fixing linting for kokoro (#3676) · bea947de
      Karmel Allison authored
      bea947de
  23. 20 Mar, 2018 2 commits
  24. 19 Mar, 2018 2 commits