Skip to content

Commit

Permalink
[c++] virtual destructor for gradient discretizer (#5965)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyu1994 authored Jul 12, 2023
1 parent 7140396 commit 28e0e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treelearner/gradient_discretizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GradientDiscretizer {
stochastic_rounding_ = stochastic_rounding;
}

~GradientDiscretizer() {}
virtual ~GradientDiscretizer() {}

virtual void DiscretizeGradients(
const data_size_t num_data,
Expand Down

0 comments on commit 28e0e6f

Please sign in to comment.