Skip to content

Commit

Permalink
[fix] fix typo in llm_cuda swiglu & swish op
Browse files Browse the repository at this point in the history
  • Loading branch information
Alcanderian committed Jun 21, 2024
1 parent dc9a5b4 commit bbbb45e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ppl/nn/engines/llm_cuda/ops/opmx/swiglu_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ KernelImpl* SwiGLUOp::CreateKernelImpl() const {
ppl::common::RetCode SwiGLUOp::SerializeData(const ppl::nn::pmx::SerializationContext&, utils::DataStream* ds) const {
flatbuffers::FlatBufferBuilder builder;
auto fb_param = opmx::CreateSwishParam(builder, param_.get()->beta);
auto fb_op_param = opmx::CreateOpParam(builder, pmx::OpParamType_SwishParam, fb_param.Union());
auto fb_op_param = opmx::CreateOpParam(builder, opmx::OpParamType_SwishParam, fb_param.Union());
opmx::FinishOpParamBuffer(builder, fb_op_param);
return ds->Write(builder.GetBufferPointer(), builder.GetSize());
}
Expand Down
2 changes: 1 addition & 1 deletion src/ppl/nn/engines/llm_cuda/ops/opmx/swish_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ KernelImpl* SwishOp::CreateKernelImpl() const {
ppl::common::RetCode SwishOp::SerializeData(const ppl::nn::pmx::SerializationContext&, utils::DataStream* ds) const {
flatbuffers::FlatBufferBuilder builder;
auto fb_param = opmx::CreateSwishParam(builder, param_.get()->beta);
auto fb_op_param = opmx::CreateOpParam(builder, pmx::OpParamType_SwishParam, fb_param.Union());
auto fb_op_param = opmx::CreateOpParam(builder, opmx::OpParamType_SwishParam, fb_param.Union());
opmx::FinishOpParamBuffer(builder, fb_op_param);
return ds->Write(builder.GetBufferPointer(), builder.GetSize());
}
Expand Down

0 comments on commit bbbb45e

Please sign in to comment.