Skip to content

Commit

Permalink
Remove hardcoded version (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindhuvahinis authored Jun 1, 2023
1 parent 663f389 commit 026e557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/python/setup/djl_python/np_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def from_nd_list(encoded: bytearray) -> list:
raise AssertionError("magic number is not NDAR, actual " + magic)
version, idx = get_int(encoded, idx)
if version != VERSION:
raise AssertionError("require version 2, actual " + str(version))
raise AssertionError(f"require version {VERSION}, actual " + str(version))
flag, idx = get_byte_as_int(encoded, idx)
if flag == 1:
_, idx = get_str(encoded, idx)
Expand Down

0 comments on commit 026e557

Please sign in to comment.