We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b91a4 commit 17e3693Copy full SHA for 17e3693
extension/android/jni/jni_layer_llama.cpp
@@ -311,12 +311,12 @@ class ExecuTorchLlmJni : public facebook::jni::HybridClass<ExecuTorchLlmJni> {
311
.seq_len = seq_len,
312
.temperature = temperature_,
313
};
314
- runner_->generate_from_pos(
+ return static_cast<jint>(runner_->generate_from_pos(
315
prompt->toStdString(),
316
start_pos,
317
config,
318
[callback](std::string result) { callback->onResult(result); },
319
- [callback](const llm::Stats& stats) { callback->onStats(stats); });
+ [callback](const llm::Stats& stats) { callback->onStats(stats); }));
320
}
321
322
0 commit comments