Skip to content

Commit b6b5c21

Browse files
thomasjpfansvekars
andauthored
Remove unused sin_triton in triton tutorial (#3281)
Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent fd981a5 commit b6b5c21

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py

-6
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ def sin_kernel(
227227
output = tl.sin(x)
228228
tl.store(out_ptr + offsets, output, mask=mask)
229229

230-
def sin_triton(x):
231-
out = torch.empty_like(x)
232-
n_elements = x.numel()
233-
sin_kernel[(n_elements,)](x, out, n_elements, BLOCK_SIZE=4)
234-
return out
235-
236230
######################################################################
237231
# You can invoke the ``triton_op`` in one of the following two ways.
238232

0 commit comments

Comments
 (0)