Date2Vec icon indicating copy to clipboard operation
Date2Vec copied to clipboard

Incorrect output

Open angmc opened this issue 1 year ago • 0 comments

Running the example on the read me returns a 2,32 embedding. You get the correct result if you change to call function to the following (removing the unsqueeze):

        with torch.no_grad():
            return self.model.encode(torch.Tensor(x)).squeeze(0).cpu()

angmc avatar Aug 11 '23 19:08 angmc