Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update logic moving tensors to device

davidmezzetti73415837c4d8
diff --git a/src/python/txtai/vectors/pooling.py b/src/python/txtai/vectors/pooling.py
index 24daef18..7164990c 100644
--- a/src/python/txtai/vectors/pooling.py
+++ b/src/python/txtai/vectors/pooling.py
@@ -42,7 +42,7 @@ class Pooling(nn.Module):
self.maxlength = maxlength if maxlength else self.tokenizer.model_max_length
# Move to device
- self.to(device)
+ self.to(self.device)
def encode(self, documents):
"""