(x: Tensor)
| 43 | device_types="cpu", |
| 44 | ) |
| 45 | def numpy_sin(x: Tensor) -> Tensor: |
| 46 | result = torch.empty_like(x) |
| 47 | np.sin(x.detach().numpy(), out=result.numpy()) |
| 48 | return result |
| 49 | |
| 50 | |
| 51 | @numpy_sin.register_fake |
no outgoing calls
no test coverage detected