Skip to content

Commit 9fe7306

Browse files
author
Ignacio Quintero
committed
Avoid flakiness in pylint TF things
1 parent 4963e5b commit 9fe7306

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/sagemaker/tensorflow/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
from distutils.version import LooseVersion # noqa: E402, F401 pylint: disable=no-name-in-module
2323
import tensorflow # noqa: E402, F401
2424

25-
if LooseVersion(tensorflow.__version__) < LooseVersion("1.3.0"):
26-
message = 'Tensorflow version must be >= 1.3.0. Current version: {}'.format(tensorflow.__version__)
25+
if LooseVersion(tensorflow.__version__) < LooseVersion("1.3.0"): # pylint: disable=no-member
26+
message = 'Tensorflow version must be >= 1.3.0. Current version: {}'.format(
27+
tensorflow.__version__) # pylint: disable=no-member
2728
raise AssertionError(message)
2829

2930
from sagemaker.tensorflow.estimator import TensorFlow # noqa: E402, F401

src/sagemaker/tensorflow/predictor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import google.protobuf.json_format as json_format
1818
from google.protobuf.message import DecodeError
1919
from protobuf_to_dict import protobuf_to_dict
20-
from tensorflow.core.framework import tensor_pb2
21-
from tensorflow.python.framework import tensor_util
20+
from tensorflow.core.framework import tensor_pb2 # pylint: disable=no-name-in-module
21+
from tensorflow.python.framework import tensor_util # pylint: disable=no-name-in-module
2222

2323
from sagemaker.content_types import CONTENT_TYPE_JSON, CONTENT_TYPE_OCTET_STREAM, CONTENT_TYPE_CSV
2424
from sagemaker.predictor import json_serializer, csv_serializer

0 commit comments

Comments
 (0)