MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / run

Function run

examples/pytorch/linear_backward/reference.py:13–16  ·  view source on GitHub ↗
(grad_output, x, weight)

Source from the content-addressed store, hash-verified

11
12@torch.no_grad()
13def run(grad_output, x, weight):
14 grad_input = grad_output @ weight
15 grad_weight = grad_output.mT @ x
16 return grad_input, grad_weight

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected