Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfucn committed Nov 21, 2023
1 parent 89f4c31 commit 1b472ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onnxruntime/core/mickey/blk_q4/prepack_sm80.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once


#include "core/common/common.h"
#include "core/util/matrix_layout.h"

Expand Down Expand Up @@ -100,8 +99,8 @@ struct BlockwiseQuantization {
const gsl::span<uint8_t>& weights_prepacked // <- int4 prepacked weights tensor, same size buffer
) {
ORT_ENFORCE((rows % 16) == 0 && (columns % 16) == 0 &&
(rows % QuantBlocking::kRow) == 0 &&
(columns % QuantBlocking::kColumn) == 0,
(rows % QuantBlocking::kRow) == 0 &&
(columns % QuantBlocking::kColumn) == 0,
"Does not support odd number of rows or columns!");
ORT_ENFORCE(weights.size() == size_t(rows * columns / 2),
"Weight tensor shape mismatch!");
Expand Down

0 comments on commit 1b472ae

Please sign in to comment.