diff --git a/recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py b/recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py index 7f3e6fbf6f..2100d5f1c3 100644 --- a/recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py +++ b/recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py @@ -227,12 +227,6 @@ def sin_kernel( output = tl.sin(x) tl.store(out_ptr + offsets, output, mask=mask) -def sin_triton(x): - out = torch.empty_like(x) - n_elements = x.numel() - sin_kernel[(n_elements,)](x, out, n_elements, BLOCK_SIZE=4) - return out - ###################################################################### # You can invoke the ``triton_op`` in one of the following two ways.