Skip to content
Open
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
2 changes: 1 addition & 1 deletion core/cnlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "tool.h"

#if defined(WINDOWS) || defined(WIN32) // used in windows
#if defined(WINDOWS) || defined(WIN32) // used in windows

#include <windows.h>
#include <process.h>
Expand Down
4 changes: 2 additions & 2 deletions kernels/abs/abs_block.mlu
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ __mlu_func__ void auxFunc3AbsFloat(size_t &output_input_gap,
size_t &auxiliary_b_gap,
size_t &span_num_deal, size_t &align_num) {
align_num = NFU_ALIGN_SIZE / sizeof(T1);
// need 2 pingpong sapce,
// need 2 pingpong sapce
span_num_deal = PAD_DOWN(UNARY_NRAM_SIZE / sizeof(T1) / 2, align_num);
ping_pong_gap = span_num_deal * sizeof(T1);
output_input_gap = 0;
Expand All @@ -54,7 +54,7 @@ __mlu_func__ void auxFunc3AbsHalfBfloat16(
size_t &output_input_gap, size_t &ping_pong_gap, size_t &auxiliary_a_gap,
size_t &auxiliary_b_gap, size_t &span_num_deal, size_t &align_num) {
align_num = NFU_ALIGN_SIZE / sizeof(T1);
// need 2 pingpong sapce,
// need 2 pingpong sapce
span_num_deal = PAD_DOWN(UNARY_NRAM_SIZE / sizeof(T1) / 2, align_num);
ping_pong_gap = span_num_deal * sizeof(T1) * 2;
output_input_gap = 0;
Expand Down
2 changes: 1 addition & 1 deletion kernels/active_rotated_filter/active_rotated_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
mluOpStatus_t MLUOP_WIN_API mluOpGetActiveRotatedFilterForwardWorkspaceSize(
const mluOpHandle_t handle, const mluOpTensorDescriptor_t input_desc,
size_t *workspace_size) {
// handle and desc ptr check null
// handle and desc ptr check null
const std::string api_name = "[mluOpActiveRotatedFilterForwardWorkspace]";
PARAM_CHECK(api_name, handle != NULL);
PARAM_CHECK(api_name, input_desc != NULL);
Expand Down
2 changes: 1 addition & 1 deletion test/mlu_op_gtest/pb_gtest/src/zoo/adam_w/adam_w.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void AdamWExecutor::paramCheck() {
if (parser_->getInputNum() != 5) {
LOG(ERROR) << "AdamW input number is wrong. ";
}
// set flag
// set flag
flag_input_reuse_ = true;
}

Expand Down