Skip to content

Commit

Permalink
extra test on skip layers
Browse files Browse the repository at this point in the history
  • Loading branch information
grantbuster committed Jul 8, 2024
1 parent 167911d commit 12ac219
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def test_skip_connection():

if i == 3: # skip start
assert layer._cache is not None
elif i == 4 or i == 5 or i == 6:
assert np.allclose(cache.numpy(), layers[3]._cache.numpy())
elif i == 7: # skip end
assert layer._cache is None
tf.assert_equal(x, tf.add(x_input, cache))
Expand Down

0 comments on commit 12ac219

Please sign in to comment.