Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
# limitations under the License.
"""Tests for the models experimental module."""

from unittest import mock

from absl.testing import absltest
import mock
import tensorflow as tf

from tensorflow_cloud.core.experimental import models_entry_point
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"""Tests for the models experimental module."""

import os
from unittest import mock
import uuid

from absl.testing import absltest
import mock

import tensorflow as tf
from tensorflow_cloud.core import machine_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Integration tests for calling tfc.run on a notebook with keras."""

import os
import mock
from unittest import mock

import tensorflow as tf
import tensorflow_cloud as tfc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Integration tests for calling tfc.run on a script with keras."""

import os
import mock
from unittest import mock

import tensorflow as tf
import tensorflow_cloud as tfc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

import os
import tempfile
from unittest import mock
import uuid

from absl.testing import absltest
import docker
import mock

from tensorflow_cloud.core import containerize
from tensorflow_cloud.core import docker_config
Expand Down
2 changes: 1 addition & 1 deletion src/python/tensorflow_cloud/core/tests/unit/deploy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"""Tests for the cloud deploy module."""

import io
from unittest import mock

from absl.testing import absltest
from googleapiclient import discovery
from googleapiclient import errors
import mock

from tensorflow_cloud.core import deploy
from tensorflow_cloud.core import gcp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"""Tests for the cloud preprocessing module."""

import os
from unittest import mock

from absl.testing import absltest
import mock

from tensorflow_cloud.core import machine_config
from tensorflow_cloud.core import preprocess
Expand Down
4 changes: 2 additions & 2 deletions src/python/tensorflow_cloud/tuner/tests/unit/tuner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

import os
import time
from unittest import mock

from keras_tuner.engine import hypermodel as hypermodel_module
from keras_tuner.engine import hyperparameters as hp_module
from keras_tuner.engine import oracle as oracle_module
from keras_tuner.engine import trial as trial_module
from keras_tuner.engine import tuner as super_tuner

import mock

import tensorflow as tf
from tensorboard.plugins.hparams import api as hparams_api
from tensorflow_cloud.core import deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# limitations under the License.
"""Tests for vizier_client."""

from unittest import mock

from googleapiclient import errors
import httplib2
import mock
import tensorflow as tf
from tensorflow_cloud.tuner import vizier_client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

import json
import os
from unittest import mock

from googleapiclient import discovery
from googleapiclient import errors
from googleapiclient import http as googleapiclient_http
import httplib2
import mock
import tensorflow as tf
from tensorflow_cloud import version
from tensorflow_cloud.utils import google_api_client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.
"""Unit test for tf_utils module."""

import mock
from unittest import mock

import tensorflow as tf

from tensorboard.backend.event_processing import directory_watcher
from tensorboard.backend.event_processing import event_file_loader
from tensorboard.backend.event_processing import io_wrapper
Expand Down
Loading