Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

Commit 90d2aa6

Browse files
chore(docs): sync up README from docarray
Signed-off-by: [email protected] <Jina Dev Bot>
1 parent 9822690 commit 90d2aa6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ class MyDocument(BaseDoc):
108108

109109
So not only can you define the types of your data, you can even **specify the shape of your tensors!**
110110

111-
Once you have your model in the form of a document, you can work with it!
112-
113111
```python
114112
# Create a document
115113
doc = MyDocument(
@@ -120,6 +118,7 @@ doc = MyDocument(
120118
# Load image tensor from URL
121119
doc.image_tensor = doc.image_url.load()
122120

121+
123122
# Compute embedding with any model of your choice
124123
def clip_image_encoder(image_tensor: TorchTensor) -> TorchTensor: # dummy function
125124
return torch.rand(512)

0 commit comments

Comments
 (0)