Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/infinicore/nn/rmsnorm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void RMSNorm::forward_inplace(Tensor &x, Tensor &residual) const {
|| device_.getType() == Device::Type::ILUVATAR
|| device_.getType() == Device::Type::METAX
|| device_.getType() == Device::Type::MOORE
|| device_.getType() == Device::Type::ALI) {
|| device_.getType() == Device::Type::ALI
|| device_.getType() == Device::Type::CAMBRICON) {
op::add_rms_norm_inplace(x, residual, weight_, static_cast<float>(eps_));
} else {
op::add_(residual, x, residual);
Expand Down
8 changes: 8 additions & 0 deletions src/infiniop/ops/add_rms_norm/bang/add_rms_norm_bang.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef __ADD_RMS_NORM_BANG_H__
#define __ADD_RMS_NORM_BANG_H__

#include "../add_rms_norm.h"

DESCRIPTOR(bang)

#endif // __ADD_RMS_NORM_BANG_H__
Loading
Loading