-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore B614 Use of unsafe PyTorch load. #1426
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
This change introduces unnecessary complexity with minimal user benefit. Torch tensors are routinely loaded using built-ins, and I think there are other areas that may require more attention. I don't think passing this bandit scan is a priority. I recommend closing this PR. |
@MasterSkepticista I agree that this PR may not be providing user benefit. But lets be clear that Security is an important aspect for any of Intel products. We have taken calls for some bandit issues, where we have closed those due to being false positive, but this is not one of those. So, I won't recommend closing it. |
I appreciate the focus on security, but in open-source frameworks like these, ease of use, simplicity, and maintainability are equally critical. These are user convenience APIs and not consumed directly by OpenFL. The intent behind adding PyTorch's own recommendation to using |
In this case, Can we ignore this bandit issue @rahulga1 ? |
Please note this down and ignore this. If PSE comes back, we go ahead with this explanation. |
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
Would setting Since we only load the state dictionaries, it will still align with expectations from OpenFL's perspective without sacrificing user experience. Btw, |
Summary
Ignored bandit issue B614.
Type of Change (Mandatory)
Specify the type of change being made.