"...git@developer.sourcefind.cn:modelzoo/rtmdet_mmcv.git" did not exist on "ff793569442f38a056eeec976a0aa737dbe56b29"
Commit 08c82ee6 authored by Ilya Matiach's avatar Ilya Matiach Committed by Guolin Ke
Browse files

update LightGBM SWIG wrapper (#1610)

parent 08add07b
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
%inline %{ %inline %{
char * LGBM_BoosterSaveModelToStringSWIG(BoosterHandle handle, char * LGBM_BoosterSaveModelToStringSWIG(BoosterHandle handle,
int start_iteration,
int num_iteration, int num_iteration,
int64_t buffer_len, int64_t buffer_len,
int64_t* out_len) { int64_t* out_len) {
char* dst = new char[buffer_len]; char* dst = new char[buffer_len];
int result = LGBM_BoosterSaveModelToString(handle, num_iteration, buffer_len, out_len, dst); int result = LGBM_BoosterSaveModelToString(handle, start_iteration, num_iteration, buffer_len, out_len, dst);
if (result != 0) { if (result != 0) {
return nullptr; return nullptr;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment