Skip to content

Commit

Permalink
Fix ONNX value creation based on FastMatrix (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimBe195 authored Nov 7, 2024
1 parent f0c58ed commit 6441be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Onnx/Value.cc
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ void Value::set(Math::FastMatrix<T> const& mat, bool transpose) {
// if we transpose we can iterate over both matrices linearly
for (u32 c = 0u; c < mat.nColumns(); c++) {
for (u32 r = 0u; r < mat.nRows(); r++) {
data[c * mat.nColumns() + r] = mat.at(r, c);
data[c * mat.nRows() + r] = mat.at(r, c);
}
}
}
Expand Down

0 comments on commit 6441be5

Please sign in to comment.