Module implementing checks for the use of 'torch.load' and 'torch.save'.
None |
None |
checkPytorchLoadSave | Function to check for the use of 'torch.load' and 'torch.save'. |
getChecks | Public method to get a dictionary with checks handled by this module. |
Function to check for the use of 'torch.load' and 'torch.save'.
Using `torch.load` with untrusted data can lead to arbitrary code execution, and improper use of `torch.save` might expose sensitive data or lead to data corruption.
Public method to get a dictionary with checks handled by this module.