Skip to content
Merged
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
4 changes: 2 additions & 2 deletions custom-nodes/backend/tensors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
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.
Loading