Skip to content

Commit

Permalink
Remove redundant cast (SleipnirGroup#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 18, 2025
1 parent 2fbe99a commit 8af869e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sleipnir/autodiff/Jacobian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SLEIPNIR_DLLEXPORT Jacobian {
auto grad = m_graphs[row].GenerateGradientTree(m_wrt);
for (int col = 0; col < m_wrt.Rows(); ++col) {
if (grad(col).expr != nullptr) {
result(row, col) = Variable{std::move(grad(col))};
result(row, col) = std::move(grad(col));
}
}
}
Expand Down

0 comments on commit 8af869e

Please sign in to comment.