deanna-emery commited on
Commit
7161e64
1 Parent(s): c729a65
modeling/orbit/__init__.py CHANGED
@@ -14,17 +14,17 @@
14
 
15
  """Defines exported symbols for the `orbit` package."""
16
 
17
- from orbit import actions
18
  # Internal import orbit.
19
- from orbit import utils
20
 
21
- from orbit.controller import Action
22
- from orbit.controller import Controller
23
 
24
- from orbit.runner import AbstractEvaluator
25
- from orbit.runner import AbstractTrainer
26
 
27
- from orbit.standard_runner import StandardEvaluator
28
- from orbit.standard_runner import StandardEvaluatorOptions
29
- from orbit.standard_runner import StandardTrainer
30
- from orbit.standard_runner import StandardTrainerOptions
 
14
 
15
  """Defines exported symbols for the `orbit` package."""
16
 
17
+ from modeling.orbit import actions
18
  # Internal import orbit.
19
+ from modeling.orbit import utils
20
 
21
+ from modeling.orbit.controller import Action
22
+ from modeling.orbit.controller import Controller
23
 
24
+ from modeling.orbit.runner import AbstractEvaluator
25
+ from modeling.orbit.runner import AbstractTrainer
26
 
27
+ from modeling.orbit.standard_runner import StandardEvaluator
28
+ from modeling.orbit.standard_runner import StandardEvaluatorOptions
29
+ from modeling.orbit.standard_runner import StandardTrainer
30
+ from modeling.orbit.standard_runner import StandardTrainerOptions
modeling/orbit/actions/__init__.py CHANGED
@@ -65,12 +65,12 @@ to avoid unnecessary writes by setting the `write_value` parameter to `False`
65
  for most clients.
66
  """
67
 
68
- from orbit.actions.conditional_action import ConditionalAction
69
 
70
- from orbit.actions.export_saved_model import ExportFileManager
71
- from orbit.actions.export_saved_model import ExportSavedModel
72
 
73
- from orbit.actions.new_best_metric import JSONPersistedValue
74
- from orbit.actions.new_best_metric import NewBestMetric
75
 
76
- from orbit.actions.save_checkpoint_if_preempted import SaveCheckpointIfPreempted
 
65
  for most clients.
66
  """
67
 
68
+ from modeling.orbit.actions.conditional_action import ConditionalAction
69
 
70
+ from modeling.orbit.actions.export_saved_model import ExportFileManager
71
+ from modeling.orbit.actions.export_saved_model import ExportSavedModel
72
 
73
+ from modeling.orbit.actions.new_best_metric import JSONPersistedValue
74
+ from modeling.orbit.actions.new_best_metric import NewBestMetric
75
 
76
+ from modeling.orbit.actions.save_checkpoint_if_preempted import SaveCheckpointIfPreempted
modeling/orbit/actions/conditional_action.py CHANGED
@@ -16,8 +16,8 @@
16
 
17
  from typing import Any, Callable, Sequence, Union
18
 
19
- from orbit import controller
20
- from orbit import runner
21
 
22
  import tensorflow as tf, tf_keras
23
 
 
16
 
17
  from typing import Any, Callable, Sequence, Union
18
 
19
+ from modeling.orbit import controller
20
+ from modeling.orbit import runner
21
 
22
  import tensorflow as tf, tf_keras
23
 
modeling/orbit/actions/new_best_metric.py CHANGED
@@ -20,8 +20,8 @@ import sys
20
  from typing import Any, Callable, Optional, Union
21
  import uuid
22
 
23
- from orbit import runner
24
- from orbit import utils
25
 
26
  import tensorflow as tf, tf_keras
27
 
 
20
  from typing import Any, Callable, Optional, Union
21
  import uuid
22
 
23
+ from modeling.orbit import runner
24
+ from modeling.orbit import utils
25
 
26
  import tensorflow as tf, tf_keras
27
 
modeling/orbit/controller.py CHANGED
@@ -21,8 +21,8 @@ from typing import Callable, Iterable, Optional, Union
21
 
22
  from absl import logging
23
 
24
- from orbit import runner
25
- from orbit import utils
26
 
27
  import tensorflow as tf, tf_keras
28
 
 
21
 
22
  from absl import logging
23
 
24
+ from modeling.orbit import runner
25
+ from modeling.orbit import utils
26
 
27
  import tensorflow as tf, tf_keras
28
 
modeling/orbit/standard_runner.py CHANGED
@@ -39,8 +39,8 @@ from typing import Any, Optional
39
 
40
  import dataclasses
41
 
42
- from orbit import runner
43
- from orbit.utils import loop_fns
44
 
45
  import tensorflow as tf, tf_keras
46
 
 
39
 
40
  import dataclasses
41
 
42
+ from modeling.orbit import runner
43
+ from modeling.orbit.utils import loop_fns
44
 
45
  import tensorflow as tf, tf_keras
46
 
modeling/orbit/utils/__init__.py CHANGED
@@ -14,17 +14,17 @@
14
 
15
  """Defines exported symbols for the `orbit.utils` package."""
16
 
17
- from orbit.utils.common import create_global_step
18
- from orbit.utils.common import get_value
19
- from orbit.utils.common import make_distributed_dataset
20
 
21
- from orbit.utils.epoch_helper import EpochHelper
22
 
23
- from orbit.utils.loop_fns import create_loop_fn
24
- from orbit.utils.loop_fns import create_tf_while_loop_fn
25
- from orbit.utils.loop_fns import LoopFnWithSummaries
26
 
27
- from orbit.utils.summary_manager import SummaryManager
28
- from orbit.utils.summary_manager_interface import SummaryManagerInterface
29
 
30
- from orbit.utils.tpu_summaries import OptionalSummariesFunction
 
14
 
15
  """Defines exported symbols for the `orbit.utils` package."""
16
 
17
+ from modeling.orbit.utils.common import create_global_step
18
+ from modeling.orbit.utils.common import get_value
19
+ from modeling.orbit.utils.common import make_distributed_dataset
20
 
21
+ from modeling.orbit.utils.epoch_helper import EpochHelper
22
 
23
+ from modeling.orbit.utils.loop_fns import create_loop_fn
24
+ from modeling.orbit.utils.loop_fns import create_tf_while_loop_fn
25
+ from modeling.orbit.utils.loop_fns import LoopFnWithSummaries
26
 
27
+ from modeling.orbit.utils.summary_manager import SummaryManager
28
+ from modeling.orbit.utils.summary_manager_interface import SummaryManagerInterface
29
 
30
+ from modeling.orbit.utils.tpu_summaries import OptionalSummariesFunction
modeling/orbit/utils/loop_fns.py CHANGED
@@ -15,7 +15,7 @@
15
  """Utilities for creating loop functions."""
16
 
17
  from absl import logging
18
- from orbit.utils import tpu_summaries
19
 
20
  import tensorflow as tf, tf_keras
21
 
 
15
  """Utilities for creating loop functions."""
16
 
17
  from absl import logging
18
+ from modeling.orbit.utils import tpu_summaries
19
 
20
  import tensorflow as tf, tf_keras
21
 
modeling/orbit/utils/summary_manager.py CHANGED
@@ -16,7 +16,7 @@
16
 
17
  import os
18
 
19
- from orbit.utils.summary_manager_interface import SummaryManagerInterface
20
 
21
  import tensorflow as tf, tf_keras
22
 
 
16
 
17
  import os
18
 
19
+ from modeling.orbit.utils.summary_manager_interface import SummaryManagerInterface
20
 
21
  import tensorflow as tf, tf_keras
22