diff --git a/custom-nodes/backend/tensors.mdx b/custom-nodes/backend/tensors.mdx index 6f83b824..5f979a23 100644 --- a/custom-nodes/backend/tensors.mdx +++ b/custom-nodes/backend/tensors.mdx @@ -69,7 +69,7 @@ torch.Size([1, 2]) ### Elementwise operations -Many binary on `torch.Tensor` (including '+', '-', '*', '/' and '==') are applied elementwise (independantly applied to each element). +Many binary on `torch.Tensor` (including '+', '-', '*', '/' and '==') are applied elementwise (independently applied to each element). The operands must be _either_ two tensors of the same shape, _or_ a tensor and a scalar. So: ```python @@ -111,4 +111,4 @@ tensor(False) tensor(True) ``` -This also means that you need to use `if a is not None:` not `if a:` to determine if a tensor variable has been set. \ No newline at end of file +This also means that you need to use `if a is not None:` not `if a:` to determine if a tensor variable has been set.