Skip to content

Commit

Permalink
More general version check (awslabs#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhieber authored Apr 18, 2019
1 parent 69ed325 commit c2626ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sockeye/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def get_valid_length_mask_for(data: mx.sym.Symbol,
:param name: Name of symbol.
:return: Bias symbol. Shape: (batch, seq_len)
"""
if mx.__version__ == "1.3.1":
if mx.__version__.startswith("1.3.1"):
# TODO(fhieber): remove old branch eventually
# mxnet 1.3.1's broadcast_like operator does not support individual axes yet. This branch uses another way
# of creating the required zeros array.
Expand Down

0 comments on commit c2626ed

Please sign in to comment.