Skip to content

Commit cee3159

Browse files
committed
rename
1 parent 33fae49 commit cee3159

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ public int loadMethod(String methodName) {
167167
public native String[] getUsedBackends(String methodName);
168168

169169
/** Retrieve the in-memory log buffer, containing the most recent ExecuTorch log entries. */
170+
public String[] readLogBuffer() {
171+
return readLogBufferNative();
172+
}
173+
170174
@DoNotStrip
171-
public native String[] readLogBuffer();
175+
private native String[] readLogBufferNative();
172176

173177
/**
174178
* Dump the ExecuTorch ETRecord file to /data/local/tmp/result.etdump.

extension/android/jni/jni_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class ExecuTorchJni : public facebook::jni::HybridClass<ExecuTorchJni> {
456456
makeNativeMethod("initHybrid", ExecuTorchJni::initHybrid),
457457
makeNativeMethod("executeNative", ExecuTorchJni::execute),
458458
makeNativeMethod("loadMethodNative", ExecuTorchJni::load_method),
459-
makeNativeMethod("readLogBuffer", ExecuTorchJni::readLogBuffer),
459+
makeNativeMethod("readLogBufferNative", ExecuTorchJni::readLogBuffer),
460460
makeNativeMethod("etdump", ExecuTorchJni::etdump),
461461
makeNativeMethod("getUsedBackends", ExecuTorchJni::getUsedBackends),
462462
});

0 commit comments

Comments
 (0)