File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
extension/android/src/main/java/org/pytorch/executorch Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import com .facebook .soloader .nativeloader .NativeLoader ;
12
12
import com .facebook .soloader .nativeloader .SystemDelegate ;
13
- import java .util .Map ;
14
13
import org .pytorch .executorch .annotations .Experimental ;
15
14
16
15
/**
@@ -43,8 +42,7 @@ public class Module {
43
42
* @param loadMode load mode for the module. See constants in {@link Module}.
44
43
* @return new {@link org.pytorch.executorch.Module} object which owns the model module.
45
44
*/
46
- public static Module load (
47
- final String modelPath , int loadMode ) {
45
+ public static Module load (final String modelPath , int loadMode ) {
48
46
if (!NativeLoader .isInitialized ()) {
49
47
NativeLoader .init (new SystemDelegate ());
50
48
}
Original file line number Diff line number Diff line change 11
11
import com .facebook .jni .HybridData ;
12
12
import com .facebook .jni .annotations .DoNotStrip ;
13
13
import com .facebook .soloader .nativeloader .NativeLoader ;
14
- import java .util .Map ;
15
14
import org .pytorch .executorch .annotations .Experimental ;
16
15
17
16
/**
@@ -29,8 +28,7 @@ class NativePeer {
29
28
private final HybridData mHybridData ;
30
29
31
30
@ DoNotStrip
32
- private static native HybridData initHybrid (
33
- String moduleAbsolutePath , int loadMode );
31
+ private static native HybridData initHybrid (String moduleAbsolutePath , int loadMode );
34
32
35
33
NativePeer (String moduleAbsolutePath , int loadMode ) {
36
34
mHybridData = initHybrid (moduleAbsolutePath , loadMode );
You can’t perform that action at this time.
0 commit comments