MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / reduce_sum_ref

Function reduce_sum_ref

reference.py:72–74  ·  view source on GitHub ↗

Sum reduction.

(x: torch.Tensor, dim: int = -1)

Source from the content-addressed store, hash-verified

70
71# Parallel Reductions
72def reduce_sum_ref(x: torch.Tensor, dim: int = -1) -> torch.Tensor:
73 """Sum reduction."""
74 return x.sum(dim=dim)
75
76def reduce_max_ref(x: torch.Tensor, dim: int = -1) -> torch.Tensor:
77 """Max reduction."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected