Commit 11d8df71 authored by suily's avatar suily
Browse files

Update train.py

parent befdfda2
...@@ -72,7 +72,7 @@ def make_update_fn(*, apply_fn, accum_steps, tx): ...@@ -72,7 +72,7 @@ def make_update_fn(*, apply_fn, accum_steps, tx):
def train_and_evaluate(config: ml_collections.ConfigDict, workdir: str): def train_and_evaluate(config: ml_collections.ConfigDict, workdir: str):
"""Runs training interleaved with evaluation.""" """Runs training interleaved with evaluation."""
input_pipeline.get_datasets(config) # TODO:解决直接get_dataset_info加载信息失败的问题
# Setup input pipeline # Setup input pipeline
dataset_info = input_pipeline.get_dataset_info(config.dataset, 'train') dataset_info = input_pipeline.get_dataset_info(config.dataset, 'train')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment