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

Function numpy_sin

advanced_source/python_custom_ops_functional.py:70–73  ·  view source on GitHub ↗
(x: Tensor)

Source from the content-addressed store, hash-verified

68 device_types="cpu",
69)
70def numpy_sin(x: Tensor) -> Tensor:
71 result = torch.empty_like(x)
72 np.sin(x.detach().numpy(), out=result.numpy())
73 return result
74
75
76######################################################################

Callers 1

fFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected