The dot operator computes the dot product of two vectors.
Given two input vectors x and y, the kernel evaluates
The dot product is computed by multiplying corresponding elements of x and y, and summing the results to produce a single scalar value z.
All backends share the interface:
def dot(x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
...See the test suite for the validation harness that exercises every backend.
pytest tests/test_dot.py -s