FunctionRacerProblemsRace

Dot Product

BeginnerPyTorchPython

Return the dot product of the 1-D tensors a and b: multiply the elements at the same positions, and add up the products.

Example 1

a [1.0,2.0,3.0]
b [4.0,5.0,6.0]
returns 32.0

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More PyTorch problems