Skip to content

Commit f2c5e9b

Browse files
committed
update
1 parent 5c69d7e commit f2c5e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/transforms/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ With a handful of exceptions, the `Postprocess` function must return a `Tensor`
1919
- Sentence embeddings are given a `Tensor` of shape `[batch_size, seq_len, hidden]` and attention mask of `[batch_size, seq_len]`, and must return a `Tensor` of shape `[batch_size, hidden]`. In other words, it expects a pooling operation along dimension `seq_len`.
2020

2121
!!! note "Note on indexing"
22-
Lua is 1-indexed, meaning that it starts counting at 1 instead of 0. The `Tensor` API reflects this, meaning that you have to start counting your axes and indices at 1 instead of 0.
22+
Lua is 1-indexed, meaning that it starts counting at 1 instead of 0. The `Tensor` API reflects this, meaning that you must count your axes and indices starting at 1 instead of 0.
2323

2424
We provide a built-in API for standard tensor operations. To learn more, check out our [Tensor API reference page](reference). You can find the stub file [here](https://github.com/mozilla-ai/encoderfile/blob/main/encoderfile-core/stubs/lua/tensor.lua).
2525

0 commit comments

Comments
 (0)