PyLint issue fixed

This commit is contained in:
Siju Samuel 2019-07-08 08:39:42 +05:30
parent e6a655127a
commit 430acadce3

View File

@ -478,7 +478,7 @@ class DropoutTest(test_lib.TestCase):
keep_prob = 0.5 keep_prob = 0.5
t = constant_op.constant(1.0, shape=[x_dim, y_dim], dtype=dtypes.float32) t = constant_op.constant(1.0, shape=[x_dim, y_dim], dtype=dtypes.float32)
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
_ = nn_ops.dropout(t, rate=(1 - keep_prob), noise_shape=[x_dim, y_dim + 10]) _ = nn_ops.dropout(t, rate=(1 - keep_prob), noise_shape=[x_dim, y_dim+10])
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
_ = nn_ops.dropout(t, rate=(1 - keep_prob), noise_shape=[x_dim, y_dim, 5]) _ = nn_ops.dropout(t, rate=(1 - keep_prob), noise_shape=[x_dim, y_dim, 5])
with self.assertRaises(ValueError): with self.assertRaises(ValueError):