Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Moore <[email protected]>
  • Loading branch information
SageMoore committed Dec 19, 2024
1 parent da33832 commit 70bb71b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions csrc/quantization/activation_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ __global__ void act_and_mul_quant_kernel(
scale.data_ptr<float>(), d); \
});

void silu_and_mul_quant(torch::Tensor& out, // [..., d]
torch::Tensor& input, // [..., 2 * d]
torch::Tensor& scale)
{
void silu_and_mul_quant(torch::Tensor& out, // [..., d]
torch::Tensor& input, // [..., 2 * d]
torch::Tensor& scale) {
TORCH_CHECK(out.dtype() == torch::kFloat8_e4m3fn);
TORCH_CHECK(input.dtype() == torch::kFloat16 ||
input.dtype() == torch::kBFloat16);
Expand Down

0 comments on commit 70bb71b

Please sign in to comment.