Fix a wrong assignment that causing mlas benchmark to crash (#22221)

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Signed-off-by: Liqun Fu <liqfu@microsoft.com>
This commit is contained in:
liqun Fu 2024-09-25 22:53:28 +00:00 committed by GitHub
parent 4d6019fa02
commit 72b0979e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,9 +80,10 @@ void RunSQNBitGemmBenchmark(size_t BlkLen,
params.A = A.data();
params.lda = K;
if (PackedQuantBData != nullptr)
params.QuantBDataWorkspace = static_cast<const void*>(PackedQuantBData.get());
params.PackedQuantBData = PackedQuantBData.get();
else
params.QuantBDataWorkspace = static_cast<const void*>(QuantBData.data());
params.QuantBScale = QuantBScale.data();
params.QuantBZeroPoint = Symmetric ? nullptr : QuantBZeroPoint.data();
params.Bias = HasBias ? Bias.data() : nullptr;