We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fe9c86 commit f9790b2Copy full SHA for f9790b2
2 files changed
flax/traceback_util.py
@@ -25,7 +25,7 @@
25
# Whether to filter flax frames from traceback.
26
_flax_filter_tracebacks = config.flax_filter_frames
27
# Flax specific set of paths to exclude from tracebacks.
28
-_flax_exclusions = set()
+_flax_exclusions = set() # type: ignore[var-annotated]
29
30
31
# re-import JAX symbol for convenience.
flax/training/checkpoints.py
@@ -1163,7 +1163,7 @@ def read_chunk(i):
1163
else:
1164
checkpoint_contents = fp.read()
1165
1166
- state_dict = serialization.msgpack_restore(checkpoint_contents)
+ state_dict = serialization.msgpack_restore(bytes(checkpoint_contents))
1167
state_dict = _restore_mpas(
1168
state_dict,
1169
target,
0 commit comments