Skip to content

Commit 1253ed5

Browse files
authored
Remove unnecessary INativePeer
Differential Revision: D61728431 Pull Request resolved: #4875
1 parent 0ae82f9 commit 1253ed5

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

extension/android/src/main/java/org/pytorch/executorch/INativePeer.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public class Module {
2727
/** Load mode for the module. Use memory locking and ignore errors. */
2828
public static final int LOAD_MODE_MMAP_USE_MLOCK_IGNORE_ERRORS = 3;
2929

30-
/** Reference to the INativePeer object of this module. */
31-
private INativePeer mNativePeer;
30+
/** Reference to the NativePeer object of this module. */
31+
private NativePeer mNativePeer;
3232

3333
/**
3434
* Loads a serialized ExecuTorch module from the specified path on the disk. Uses default load
@@ -68,7 +68,7 @@ public static Module load(final String modelPath) {
6868
return load(modelPath, null);
6969
}
7070

71-
Module(INativePeer nativePeer) {
71+
Module(NativePeer nativePeer) {
7272
this.mNativePeer = nativePeer;
7373
}
7474

extension/android/src/main/java/org/pytorch/executorch/NativePeer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import com.facebook.soloader.nativeloader.NativeLoader;
1414
import java.util.Map;
1515

16-
class NativePeer implements INativePeer {
16+
class NativePeer {
1717
static {
1818
// Loads libexecutorch.so from jniLibs
1919
NativeLoader.loadLibrary("executorch");

0 commit comments

Comments
 (0)