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

Function sin_

advanced_source/python_custom_ops_mutable.py:120–122  ·  view source on GitHub ↗
(x: Tensor)

Source from the content-addressed store, hash-verified

118 tags=torch.Tag.inplace,
119 )
120 def sin_(x: Tensor) -> Tensor:
121 x.sin_()
122 return x
123
124
125 @torch.library.custom_op(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected