Skip to content

Commit

Permalink
Fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
qlzh727 committed Jun 25, 2020
1 parent 4b64158 commit deb57c3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tensorflow_addons/rnn/tests/cell_test.py
Expand Up @@ -585,13 +585,17 @@ def _run_cell(cell_fn, **kwargs):
implementation=2,
)
expected_output = np.asarray(
[[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0., 0., 0., 0., 0.]],
dtype=np.float32
[
[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0.417551, 0.417551, 0.417551, 0.417551, 0.417551],
[0.0, 0.0, 0.0, 0.0, 0.0],
],
dtype=np.float32,
)
np.testing.assert_allclose(
first_implementation_output, second_implementation_output
)
np.testing.assert_allclose(first_implementation_output, expected_output, rtol=1e-6, atol=1e-6)
np.testing.assert_allclose(
first_implementation_output, expected_output, rtol=1e-6, atol=1e-6
)

0 comments on commit deb57c3

Please sign in to comment.