Skip to content

Commit

Permalink
Remove the need to use vector
Browse files Browse the repository at this point in the history
  • Loading branch information
TedThemistokleous committed Dec 10, 2024
1 parent 005d8c7 commit 86d9ee3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/onnx/parse_matmulnbits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ struct parse_matmulnbits : op_parser<parse_matmulnbits>
to_string_range(expected_b_lens) +
". Actual dims: " + to_string_range(args[1]->get_shape().lens()));

std::vector<size_t> expected_scales_lens{n * n_blocks_per_col};

if(args[2]->get_shape().elements() != expected_scales_lens[0])
const size_t expected_scales_lens = n * n_blocks_per_col;
if(args[2]->get_shape().elements() != expected_scales_lens)
MIGRAPHX_THROW("MatMulNBits: Input scales does not match expected dims: " +
to_string_range(expected_scales_lens) +
to_string(expected_scales_lens) +
". Actual dims: " + to_string_range(args[2]->get_shape().lens()));

if(args.size() > 3)
Expand Down

0 comments on commit 86d9ee3

Please sign in to comment.