Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/python/tensorflow_cloud/core/experimental/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
"""Module that contains the `run_models` wrapper for training models from TF Model Garden."""

from importlib import resources as pkg_resources
import os
import pickle
from typing import Any, Dict, Optional
Expand All @@ -26,14 +27,6 @@
from official.legacy.image_classification.efficientnet import efficientnet_model
from official.legacy.image_classification.resnet import resnet_model

# pylint: disable=g-import-not-at-top
try:
import importlib.resources as pkg_resources
except ImportError:
# Backported for python<3.7
import importlib_resources as pkg_resources
# pylint: enable=g-import-not-at-top

_PARAMS_FILE_NAME_FORMAT = '{}_params'
_ENTRY_POINT_FORMAT = '{}.py'
_ENTRY_POINT_TEMPLATE = 'models_entry_point.py'
Expand Down
Loading