From 72a66d3253f908903f08ffb240358407ba2f6954 Mon Sep 17 00:00:00 2001 From: "Thomas J. Fan" Date: Sun, 2 Mar 2025 11:04:02 -0500 Subject: [PATCH] Remove unused sin_triton in triton tutorial --- .../torch_compile_user_defined_triton_kernel_tutorial.py | 6 ------ 1 file changed, 6 deletions(-) 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.