unpack_fingerprint#

class nvmolkit.fingerprints.unpack_fingerprint(fp: Tensor)#

Unpack a 32-bit integer-encoded fingerprint into a 2D boolean tensor of shape (len(fp), fingerprint_size).

Parameters:

fp – A tensor of shape (n_fps, fp_size / 32), containing packed fingerprints with dtype int32

Returns:

A boolean tensor of shape (n_fps, fp_size)