Skip to content

Commit 7eb1364

Browse files
committed
Update csrc/layernorm_kernels.cu
Signed-off-by: Luka Govedič <ProExpertProg@users.noreply.github.com>
1 parent 66a35a9 commit 7eb1364

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csrc/layernorm_kernels.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ void fused_add_rms_norm(torch::Tensor& input, // [..., hidden_size]
380380
torch::Tensor& residual, // [..., hidden_size]
381381
torch::Tensor& weight, // [hidden_size]
382382
double epsilon) {
383+
TORCH_CHECK(weight.scalar_type() == input.scalar_type());
383384
TORCH_CHECK(input.scalar_type() == residual.scalar_type());
384385
TORCH_CHECK(residual.is_contiguous());
385386
TORCH_CHECK(weight.is_contiguous());

0 commit comments

Comments
 (0)