File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,14 @@ def _test_data_fn(ctx=None):
128
128
input_context = ctx )
129
129
return test_ds
130
130
131
- if strategy :
132
- if isinstance (strategy , tf .distribute .experimental .TPUStrategy ):
133
- test_ds = strategy .experimental_distribute_datasets_from_function (_test_data_fn )
131
+ if strategy :
132
+ if isinstance (strategy , tf .distribute .experimental .TPUStrategy ):
133
+ test_ds = strategy .experimental_distribute_datasets_from_function (
134
+ _test_data_fn )
135
+ else :
136
+ test_ds = strategy .experimental_distribute_dataset (_test_data_fn ())
134
137
else :
135
- test_ds = strategy .experimental_distribute_dataset (_test_data_fn ())
136
- else :
137
- test_ds = _test_data_fn ()
138
+ test_ds = _test_data_fn ()
138
139
139
140
return train_ds , test_ds
140
141
You can’t perform that action at this time.
0 commit comments