Skip to content

Commit

Permalink
[rust] Fix deleteModel error
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 committed May 30, 2024
1 parent ddbb95a commit ec1c893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/tokenizers/rust/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ pub extern "system" fn Java_ai_djl_engine_rust_RustLibrary_loadModel<'local>(

#[no_mangle]
pub extern "system" fn Java_ai_djl_engine_rust_RustLibrary_deleteModel<'local>(
_env: JObject,
_env: JNIEnv,
_: JObject,
handle: jlong,
) {
drop_handle::<Box<dyn Model>>(handle);
Expand Down

0 comments on commit ec1c893

Please sign in to comment.