-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Description
Initial Checks
- I have read and followed the docs and still think this is a bug
Description
I have found an issue with the following sequence:
Object
SubIndiceObject with an attribute Optional[AnyEmbedding]
I am running an operation on GPU and storing the TorchEmbedding on that attribute
Then I am converting the value back into a NDArrayEmbedding on CPU and storing in the same attribute.
When indexing the data into weaviate, it still tracks that attribute as a TorchTensor on GPU and tries to convert to a NDArrayEmbedding.
In order to fix it, I ran the cpu() operation prior to saving that tensor on the attribute.
I don't know if it is a bug or by design but logging the scenario nonetheless.
Example Code
No response
Python, DocArray & OS Version
docarray version: 0.39.1
Affected Components
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels