Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 711861601
  • Loading branch information
tensorflower-gardener committed Jan 3, 2025
1 parent 45a74ff commit 4045cd6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions official/benchmark/keras_imagenet_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,16 @@ def benchmark_1_gpu_fp16(self):
dtype='float16',
per_replica_batch_size=256)

def benchmark_1_gpu_fp16_128_batch(self):
"""Tests Keras model with 1 GPU and fp16."""
self._setup()
self._run_and_report_benchmark(
experiment_name='benchmark_1_gpu_fp16_128_batch',
num_gpus=1,
distribution_strategy='one_device',
dtype='float16',
per_replica_batch_size=128)

def benchmark_1_gpu_fp16_dynamic(self):
"""Tests Keras model with 1 GPU, fp16, and dynamic loss scaling."""
self._setup()
Expand Down

0 comments on commit 4045cd6

Please sign in to comment.