Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix simple typo: valus -> value #1219

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytext/docs/source/create_new_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The ``forward`` method contains the execution logic calling each of those compon

To finish this class, we need to define a few more functions.

All the inputs are placed in a python dict where the key is the name of the tensorizer as defined in ModelInput, and the valus is the tensor for this input row.
All the inputs are placed in a python dict where the key is the name of the tensorizer as defined in ModelInput, and the value is the tensor for this input row.

First, we define how the inputs will be passed to the ``forward`` function in ``arrange_model_inputs``. In our case, the only input passed to the ``forward`` function is the tensors from the "tokens" input. As explained above, :class:`TokenTensorizer` returns 2 tensors: the tokens and the sequence length. (Actually it returns 3 tensors, we'll ignore the 3rd one, the token ranges, in this tutorial)

Expand Down