We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6fc2e74 + 296ee52 commit e10a373Copy full SHA for e10a373
spanking/main.py
@@ -20,7 +20,7 @@ def add_texts(self, texts):
20
def delete_text(self, index):
21
if 0 <= index < len(self.texts):
22
self.texts.pop(index)
23
- self.embeddings = self.embeddings.at[index].delete()
+ self.embeddings = jnp.delete(self.embeddings, index, axis=0)
24
else:
25
raise IndexError("Invalid index")
26
0 commit comments