MCPcopy Create free account
hub / github.com/pytorch/tutorials / sin_out

Function sin_out

advanced_source/python_custom_ops_mutable.py:130–132  ·  view source on GitHub ↗
(x: Tensor, *, out: Tensor)

Source from the content-addressed store, hash-verified

128 tags=torch.Tag.out,
129 )
130 def sin_out(x: Tensor, *, out: Tensor) -> Tensor:
131 torch.sin(x, out=out)
132 return out
133
134
135 x_for_inplace = torch.randn(3)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected