Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 0e7981a

Browse files
authored
Update 20200117-tfx-generic-trainer.md
1 parent c43366e commit 0e7981a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rfcs/20200117-tfx-generic-trainer.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,8 @@ def run_fn(args: trainer.executor.TrainerFnArgs) -> None:
237237
"""Build the TF model and train it."""
238238
ps_strategy = tf.distribute.experimental.ParameterServerStrategy()
239239
with ps_strategy.scope():
240-
train_dataset = _create_dataset(args.train_files, ...)
241-
eval_dataset = _create_dataset(args.eval_files, ...)
242240
model = _build_keras_model()
243-
model.fit(train_dataset, validation_data=eval_dataset, ...)
241+
model.fit(...)
244242
if _is_chief():
245243
model.save(...)
246244
```

0 commit comments

Comments
 (0)