Skip to content

Commit

Permalink
TF test_reclayer_optimize_out_pos_enc_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Sep 13, 2023
1 parent 3784a39 commit 816492a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_TFNetworkRecLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7304,6 +7304,19 @@ def test_reclayer_optimize_out_cumsum_unrelated_axis():
)


def test_reclayer_optimize_out_pos_enc_layer():
feat_dim = FeatureDim("feat", dimension=11)
check_reclayer_optimize_out(
feat_dim=feat_dim,
subnet_layer_dict={
"class": "positional_encoding",
"out_dim": feat_dim,
"from": "data:source",
"add_to_input": True,
},
)


def test_reclayer_optimize_out_rel_pos_enc_layer():
# https://github.com/rwth-i6/returnn/issues/1253
time_dim = SpatialDim("time")
Expand Down

0 comments on commit 816492a

Please sign in to comment.