We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c58ed commit 6441be5Copy full SHA for 6441be5
src/Onnx/Value.cc
@@ -725,7 +725,7 @@ void Value::set(Math::FastMatrix<T> const& mat, bool transpose) {
725
// if we transpose we can iterate over both matrices linearly
726
for (u32 c = 0u; c < mat.nColumns(); c++) {
727
for (u32 r = 0u; r < mat.nRows(); r++) {
728
- data[c * mat.nColumns() + r] = mat.at(r, c);
+ data[c * mat.nRows() + r] = mat.at(r, c);
729
}
730
731
0 commit comments