Skip to content

Commit d62be5a

Browse files
committed
make private method now
1 parent e465fa2 commit d62be5a

File tree

1 file changed

+4
-1
lines changed
  • extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm

1 file changed

+4
-1
lines changed

extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModule.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,12 @@ public long prefillPrompt(String prompt, long startPos, int bos, int eos) {
215215
return 0;
216216
}
217217

218-
// returns a tuple of (status, updated startPos)
218+
// returns status
219219
private native int appendTextInput(String prompt, int bos, int eos);
220220

221+
// returns status
222+
private native int appendAudioInput(int[] data, int batchSize, int nChannels, int nSamples);
223+
221224
/**
222225
* Reset the context of the LLM. This will clear the KV cache and reset the state of the LLM.
223226
*

0 commit comments

Comments
 (0)