Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/tilegym/ops/cutile/silu_and_mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def silu_and_mul_kernel_row_wise(
input,
output,
TILE_SIZE: ConstInt,
n_elements: ConstInt,
hidden_size: ConstInt,
):
bid = ct.bid(0) # this gives us our row
Expand All @@ -45,7 +44,6 @@ def silu_and_mul_kernel_row_wise(
row_idx = bid
a_col_idx = offsets # First half: [0, hidden_size)
b_col_idx = offsets + hidden_size # Second half: [hidden_size, 2*hidden_size)
out_offsets = bid * hidden_size + offsets

# Load tiles using gather with 2D indices
# gather broadcasts (scalar, tile) to (tile,)
Expand Down Expand Up @@ -92,9 +90,6 @@ def silu_and_mul(
# Flatten input to 2D: (batch_size, 2 * hidden_size)
input_flat = input.view(-1, original_shape[-1])
batch_size = input_flat.shape[0]
n_elements = (
batch_size * hidden_size
) # Total elements to process in output

# Get final output shape
output_shape = list(original_shape)
Expand Down Expand Up @@ -126,7 +121,6 @@ def silu_and_mul(
input_flat,
output,
TILE_SIZE,
n_elements,
hidden_size
),
)
Expand Down