Skip to content

Commit

Permalink
fix bug on set memory size
Browse files Browse the repository at this point in the history
  • Loading branch information
QinbinLi committed Oct 28, 2018
1 parent 4eef25a commit a524e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thundersvm/model/svmmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,5 @@ int SvmModel::get_working_set_size(int n_instances, int n_features) {

void SvmModel::set_max_memory_size(size_t size) {
if(size > 0)
this->param.max_mem_size = static_cast<size_t>(size) << 20;
this->param.max_mem_size = static_cast<size_t>(size);
}

0 comments on commit a524e6a

Please sign in to comment.