Closed MGYN closed 3 years ago
Sorry, I made a mistake with the function miss. But I also wonder to know how can I get all the embedding in a tensor or a NumPy rather than get the specific numbers once. Thanks!
If you want to get all the embedding you can try this.
v1 = model.to('cpu').embeddings_f.weight.clone()
print(v1)
I am trying the tool to get all functions embedding in a binary file, and the file has 10 thousand functions, but the tool can only get a few of them and missed about 9000 functions. I found that many functions in the symbol table are missed and many offsets are different from the idea pro, seems the function results in bin2asm.py are not a real function.
The difference as follow:
The missed functions in the symbol table showed in IDA as follow:
Why does this happen? And Is there a solution? Besides, my goal is to get all functions embedding in a file and get all the embedding in a tensor or a NumPy with unknown numbers, but maybe I can only get the specific numbers once. I don't know much about the torch, so what can I do? Such as get the first three but I can't get the 0 to function number.