@@ -36,32 +36,19 @@ public class Module {
36
36
/** Reference to the NativePeer object of this module. */
37
37
private NativePeer mNativePeer ;
38
38
39
- /**
40
- * Loads a serialized ExecuTorch module from the specified path on the disk. Uses default load
41
- * FILE.
42
- *
43
- * @param modelPath path to file that contains the serialized ExecuTorch module.
44
- * @param extraFiles map with extra files names as keys, content of them will be loaded to values.
45
- * @return new {@link org.pytorch.executorch.Module} object which owns the model module.
46
- */
47
- public static Module load (final String modelPath , final Map <String , String > extraFiles ) {
48
- return load (modelPath , extraFiles , LOAD_MODE_FILE );
49
- }
50
-
51
39
/**
52
40
* Loads a serialized ExecuTorch module from the specified path on the disk.
53
41
*
54
42
* @param modelPath path to file that contains the serialized ExecuTorch module.
55
- * @param extraFiles map with extra files names as keys, content of them will be loaded to values.
56
43
* @param loadMode load mode for the module. See constants in {@link Module}.
57
44
* @return new {@link org.pytorch.executorch.Module} object which owns the model module.
58
45
*/
59
46
public static Module load (
60
- final String modelPath , final Map < String , String > extraFiles , int loadMode ) {
47
+ final String modelPath , int loadMode ) {
61
48
if (!NativeLoader .isInitialized ()) {
62
49
NativeLoader .init (new SystemDelegate ());
63
50
}
64
- return new Module (new NativePeer (modelPath , extraFiles , loadMode ));
51
+ return new Module (new NativePeer (modelPath , loadMode ));
65
52
}
66
53
67
54
/**
@@ -71,7 +58,7 @@ public static Module load(
71
58
* @return new {@link org.pytorch.executorch.Module} object which owns the model module.
72
59
*/
73
60
public static Module load (final String modelPath ) {
74
- return load (modelPath , null );
61
+ return load (modelPath , LOAD_MODE_FILE );
75
62
}
76
63
77
64
Module (NativePeer nativePeer ) {
0 commit comments