Spaces:
Runtime error
Runtime error
deanna-emery
commited on
Commit
•
c729a65
1
Parent(s):
cb51cf5
updates
Browse files
modeling/official/core/actions.py
CHANGED
@@ -19,12 +19,12 @@ from typing import List
|
|
19 |
from absl import logging
|
20 |
|
21 |
import gin
|
22 |
-
import orbit
|
23 |
import tensorflow as tf, tf_keras
|
24 |
|
25 |
-
from official.core import base_trainer
|
26 |
-
from official.core import config_definitions
|
27 |
-
from official.modeling import optimization
|
28 |
|
29 |
|
30 |
class PruningAction:
|
|
|
19 |
from absl import logging
|
20 |
|
21 |
import gin
|
22 |
+
import modeling.orbit
|
23 |
import tensorflow as tf, tf_keras
|
24 |
|
25 |
+
from modeling.official.core import base_trainer
|
26 |
+
from modeling.official.core import config_definitions
|
27 |
+
from modeling.official.modeling import optimization
|
28 |
|
29 |
|
30 |
class PruningAction:
|
modeling/official/core/base_trainer.py
CHANGED
@@ -22,7 +22,7 @@ import functools
|
|
22 |
from typing import Union, Optional
|
23 |
from absl import logging
|
24 |
import gin
|
25 |
-
import orbit
|
26 |
import tensorflow as tf, tf_keras
|
27 |
|
28 |
from official.core import base_task
|
|
|
22 |
from typing import Union, Optional
|
23 |
from absl import logging
|
24 |
import gin
|
25 |
+
import modeling.orbit
|
26 |
import tensorflow as tf, tf_keras
|
27 |
|
28 |
from official.core import base_task
|
modeling/official/core/train_lib.py
CHANGED
@@ -21,14 +21,14 @@ from typing import Any, List, Mapping, Optional, Tuple
|
|
21 |
# Import libraries
|
22 |
|
23 |
from absl import logging
|
24 |
-
import orbit
|
25 |
import tensorflow as tf, tf_keras
|
26 |
|
27 |
-
from official.core import actions
|
28 |
-
from official.core import base_task
|
29 |
-
from official.core import base_trainer
|
30 |
-
from official.core import config_definitions
|
31 |
-
from official.core import train_utils
|
32 |
|
33 |
maybe_create_best_ckpt_exporter = train_utils.maybe_create_best_ckpt_exporter
|
34 |
|
|
|
21 |
# Import libraries
|
22 |
|
23 |
from absl import logging
|
24 |
+
import modeling.orbit
|
25 |
import tensorflow as tf, tf_keras
|
26 |
|
27 |
+
from modeling.official.core import actions
|
28 |
+
from modeling.official.core import base_task
|
29 |
+
from modeling.official.core import base_trainer
|
30 |
+
from modeling.official.core import config_definitions
|
31 |
+
from modeling.official.core import train_utils
|
32 |
|
33 |
maybe_create_best_ckpt_exporter = train_utils.maybe_create_best_ckpt_exporter
|
34 |
|
modeling/official/core/train_utils.py
CHANGED
@@ -24,18 +24,18 @@ from typing import Any, Callable, Dict, List, Optional, Union
|
|
24 |
from absl import logging
|
25 |
import gin
|
26 |
import numpy as np
|
27 |
-
import orbit
|
28 |
import tensorflow as tf, tf_keras
|
29 |
|
30 |
# pylint: disable=g-direct-tensorflow-import
|
31 |
from tensorflow.python.framework import ops
|
32 |
from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2_as_graph
|
33 |
# pylint: enable=g-direct-tensorflow-import
|
34 |
-
from official.core import base_task
|
35 |
-
from official.core import base_trainer
|
36 |
-
from official.core import config_definitions
|
37 |
-
from official.core import exp_factory
|
38 |
-
from official.modeling import hyperparams
|
39 |
|
40 |
|
41 |
BEST_CHECKPOINT_NAME = 'best_ckpt'
|
|
|
24 |
from absl import logging
|
25 |
import gin
|
26 |
import numpy as np
|
27 |
+
import modeling.orbit
|
28 |
import tensorflow as tf, tf_keras
|
29 |
|
30 |
# pylint: disable=g-direct-tensorflow-import
|
31 |
from tensorflow.python.framework import ops
|
32 |
from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2_as_graph
|
33 |
# pylint: enable=g-direct-tensorflow-import
|
34 |
+
from modeling.official.core import base_task
|
35 |
+
from modeling.official.core import base_trainer
|
36 |
+
from modeling.official.core import config_definitions
|
37 |
+
from modeling.official.core import exp_factory
|
38 |
+
from modeling.official.modeling import hyperparams
|
39 |
|
40 |
|
41 |
BEST_CHECKPOINT_NAME = 'best_ckpt'
|