Skip to content

Commit

Permalink
Use updated Eigen::indexing::all instead of Eigen::all
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8000-0000 committed Aug 14, 2023
1 parent 32f9917 commit 61d30a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coral/learn/backprop/layers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ MatrixXf CrossEntropyGradient(const MatrixXf& c, const MatrixXf& p) {
MatrixXf FullyConnected(const MatrixXf& mat_x, const MatrixXf& mat_w,
const MatrixXf& mat_b) {
MatrixXf mat_y = mat_x * mat_w;
mat_y.array().rowwise() += mat_b.array()(0, Eigen::all);
mat_y.array().rowwise() += mat_b.array()(0, Eigen::indexing::all);
return mat_y;
}

Expand Down

0 comments on commit 61d30a4

Please sign in to comment.