We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e31dbe commit 730f9ffCopy full SHA for 730f9ff
tests/test_nn_transformer.py
@@ -30,9 +30,7 @@ def test_nn_transformer_search():
30
data, source_spatial_axis=time_dim,
31
target=nn.SearchFunc(
32
beam_size=3,
33
- max_seq_len=nn.reduce(
34
- nn.length(data, axis=time_dim),
35
- mode="max", axis=nn.batch_dim)))
+ max_seq_len=nn.dim_value(data, axis=time_dim)))
36
out_labels.mark_as_default_output()
37
38
config_code = nn.get_returnn_config().get_complete_py_code_str(transformer)
0 commit comments