Lancern / asm2vec

An unofficial implementation of asm2vec as a standalone python package
160 stars 38 forks source link

I can’t specify the value of "d" #3

Open zijiancogito opened 4 years ago

zijiancogito commented 4 years ago

When I set d = 256 or other values, it will cause a bug.

oalieno commented 3 years ago

https://github.com/Lancern/asm2vec/blob/6e975f0b9cf573358d2f73c308aa043e26fb9a10/asm2vec/internal/repr.py#L90

Missing parameter dim to indicate the dimension of the function vector. Should be

 vfa.value().append(VectorizedFunction(make_sequential_function(f, num_of_rnd_walks), dim=dim*2)) 

See #6