Update for compatibility with Python 3.12 and Radare 6.0.2

Tested with the following workflows:
vtable diff
deep trace -> vtable alignment
This commit is contained in:
Flawed
2025-09-01 23:19:49 -07:00
parent 1761155281
commit acccb1cc7d
6 changed files with 22 additions and 24 deletions
+3 -1
View File
@@ -326,7 +326,9 @@ def load_model(path, device="cpu"):
def accuracy(y, probs):
return torch.mean(torch.tensor([torch.sum(probs[i][yi]) for i, yi in enumerate(y)]))
return torch.mean(
torch.tensor([torch.sum(probs[i][yi].detach()) for i, yi in enumerate(y)])
)
def cosine_similarities(model):