Skip to content

Commit b0f23a7

Browse files
authored
Remove LightGBM dump after deserialization (#474)
1 parent 61425b2 commit b0f23a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pgml-extension/src/bindings/lightgbm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ impl Bindings for Estimator {
123123
std::fs::write(&path, &bytes[16..]).unwrap();
124124
estimator = lightgbm::Booster::from_file(&path);
125125
}
126+
std::fs::remove_file(&path).unwrap();
126127
Box::new(Estimator {
127128
estimator: estimator.unwrap(),
128129
})

0 commit comments

Comments
 (0)