Skip to content

Commit

Permalink
Fix a bug on rmsnorm for MPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Feb 27, 2024
1 parent 68fad40 commit bd64e6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nnc/cmd/norm/mps/ccv_nnc_rmsnorm_mps.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static int _ccv_nnc_rmsnorm_forw(const ccv_nnc_cmd_t cmd, const ccv_nnc_hint_t h
.channel_groups = (uint32_t)channel_groups,
.sequence_count = (uint32_t)sequence_count,
.epsilon = cmd.info.rmsnorm.epsilon,
.elementwise_affine = 1,
.scale_translation_batched = scale_translation_batched,
.normalization_type = 2,
.reuse_saved_statistics = false,
Expand Down

0 comments on commit bd64e6d

Please sign in to comment.