Skip to content

Commit

Permalink
delete useless variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dante.l committed Jun 21, 2023
1 parent 58e686d commit ac2d980
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/algo_impl/als/als.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ pair<double, double> CALS::_partial_update_ialspp(
const int u = x;
int64_t beg = x == 0 ? 0 : indptr[x - 1];
int64_t end = indptr[x];
// int64_t data_size = end - beg;
for (int64_t idx=0, it = beg; it < end; ++it, ++idx) {
const int col = keys[it - shifted];
Yui[it - shifted] = (P.row(u) * Q.row(col).transpose()).value();
Expand Down Expand Up @@ -333,7 +332,6 @@ pair<double, double> CALS::_partial_update_ialspp(
for (int64_t idx=0, it = beg; it < end; ++it, ++idx) {
const int col = keys[it - shifted];
const float val = vals[it - shifted];
// const auto &v = block_q.row(col);
Ap.noalias() += val * alpha * (block_q.row(col) * p).value() * block_q.row(col);
}
float step_size = rsold / p.dot(Ap);
Expand Down
2 changes: 0 additions & 2 deletions lib/algo_impl/warp/warp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ void CWARP::worker(int worker_id)
{
int max_trial = opt_["max_trials"].int_value();
double threshold = opt_["threshold"].number_value();
// bool update_i = opt_["update_i"].bool_value();
// bool update_j = opt_["update_j"].bool_value();
double reg_u = opt_["reg_u"].number_value();
double reg_i = opt_["reg_i"].number_value();
double reg_j = opt_["reg_j"].number_value();
Expand Down

0 comments on commit ac2d980

Please sign in to comment.