Skip to content

Commit

Permalink
Replace _target_device with device in semantic search example (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen authored Jan 18, 2024
1 parent ed916fb commit e757296
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
print("Corpus loaded with {} sentences / embeddings".format(len(corpus_sentences)))

# Move embeddings to the target device of the model
corpus_embeddings = corpus_embeddings.to(model._target_device)
corpus_embeddings = corpus_embeddings.to(model.device)

while True:
inp_question = input("Please enter a question: ")
Expand Down

0 comments on commit e757296

Please sign in to comment.