"git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "86aeec1005cd0c7c00cbfeb2d99cc9ef0a63f9df"
Commit cb6d8d6a authored by Rajagopal Ananthanarayanan's avatar Rajagopal Ananthanarayanan Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 330660757
parent 7c30cae0
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
import json import json
import os import os
import pprint import pprint
from typing import Any from typing import Any, List
from absl import logging from absl import logging
import dataclasses
import orbit import orbit
import tensorflow as tf import tensorflow as tf
...@@ -47,6 +48,16 @@ def create_trainer( ...@@ -47,6 +48,16 @@ def create_trainer(
return trainer return trainer
@dataclasses.dataclass
class ParseConfigOptions:
"""Use this dataclass instead of FLAGS to customize parse_configuration()."""
experiment: str
config_file: List[str]
tpu: str = ''
tf_data_service: str = ''
params_override: str = ''
def parse_configuration(flags_obj): def parse_configuration(flags_obj):
"""Parses ExperimentConfig from flags.""" """Parses ExperimentConfig from flags."""
......
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