torch.add()

Math Operations

Element-wise addition of two tensors with broadcasting support.

Each element in the result is the sum of the corresponding elements from A and B at the same position [i, j].

Python
Shift+Enter to run
1
2
3
4
5
6
Step 0 / 0
Speed

Write Python code and press Shift+Enter or click "Run" to visualize.

Run the operation to see step-by-step explanation.