Skip to content

Commit

Permalink
support TPU on resnet50 using keras compile/fit
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 273358759
  • Loading branch information
rachellj218 authored and tensorflower-gardener committed Oct 7, 2019
1 parent 482784a commit fa5b66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion official/vision/image_classification/resnet_imagenet_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def run(flags_obj):
num_gpus=flags_obj.num_gpus,
num_workers=num_workers,
all_reduce_alg=flags_obj.all_reduce_alg,
num_packs=flags_obj.num_packs)
num_packs=flags_obj.num_packs,
tpu_address=flags_obj.tpu)

if strategy:
# flags_obj.enable_get_next_as_optional controls whether enabling
Expand Down

0 comments on commit fa5b66e

Please sign in to comment.