Skip to content

Commit 6480f67

Browse files
committed
Code style pass
1 parent 184f624 commit 6480f67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorflow_addons/layers/tests/embedding_bag_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def test_backward(input_shape, input_dim, dtype, indices_dtype, combiner, graph_
100100
expected_grads = tape.gradient(expected, [params, weights])
101101
# Gather returns sparse IndexedSlices so we have to sum them together.
102102
test_utils.assert_allclose_according_to_type(
103-
tf.convert_to_tensor(expected_grads[0]), tf.convert_to_tensor(grads[0]),
103+
tf.convert_to_tensor(expected_grads[0]),
104+
tf.convert_to_tensor(grads[0]),
104105
)
105106
test_utils.assert_allclose_according_to_type(
106107
expected_grads[1],
@@ -116,4 +117,5 @@ def test_backward(input_shape, input_dim, dtype, indices_dtype, combiner, graph_
116117
expected_grads = tape.gradient(expected, [params])
117118
# Gather returns sparse IndexedSlices so we have to sum them together.
118119
test_utils.assert_allclose_according_to_type(
119-
tf.convert_to_tensor(expected_grads[0]), tf.convert_to_tensor(grads[0]))
120+
tf.convert_to_tensor(expected_grads[0]), tf.convert_to_tensor(grads[0])
121+
)

0 commit comments

Comments
 (0)