Closed mjdenkowski closed 6 months ago
Use weights_only=True when loading SockeyeModel parameters. From torch.load documentation:
weights_only=True
torch.load() unless weights_only parameter is set to True, uses pickle module implicitly, which is known to be insecure.
pytest
pytest test/system
./style-check.sh
sockeye/__init__.py
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
It looks like macos-latest no longer supports Python versions 3.7 and 3.8. I've set our checks to use macos-12, which supports both.
macos-latest
macos-12
Use
weights_only=True
when loading SockeyeModel parameters. From torch.load documentation:Pull Request Checklist
pytest
)pytest test/system
)./style-check.sh
)sockeye/__init__.py
. Major version bump if this is a backwards incompatible change.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.