fix(security): add nosec for torch.load (B614 #735)

This commit is contained in:
TPTBusiness
2026-04-29 17:27:53 +02:00
parent ee24b61534
commit ee29ed2368
@@ -102,7 +102,7 @@ class PMLP(torch.nn.Module):
model_cls = PMLP
if __name__ == "__main__":
node_features = torch.load("node_features.pt", weights_only=True)
node_features = torch.load("node_features.pt", weights_only=True) # nosec B614
edge_index = torch.load("edge_index.pt", weights_only=True) # nosec B614
# Model instantiation and forward pass