We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75401ba commit 0e6eb1fCopy full SHA for 0e6eb1f
notebooks/example.ipynb
@@ -430,9 +430,10 @@
430
"outputs": [],
431
"source": [
432
"# test the TextEmbedder: it takes as input a tensor of token ids and outputs a tensor of embeddings\n",
433
+ "\n",
434
"text_embedder_output = text_embedder(input_ids=batch[\"input_ids\"], attention_mask=batch[\"attention_mask\"])\n",
435
"\n",
- "print(\"TextEmbedder input: \", text_embedder_input.input_ids)\n",
436
+ "print(\"TextEmbedder input: \", batch[\"input_ids\"])\n",
437
"print(\"TextEmbedder output shape: \", text_embedder_output.shape)"
438
]
439
},
0 commit comments