File size: 252 Bytes
f9791fd | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from typing import Optional
import torch
from ._ops import ops
def first_kernel(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor:
if out is None:
out = torch.empty_like(x)
ops.first_kernel(out, x)
return out
|