Skip to content

Commit 70a6dbc

Browse files
committed
linter
1 parent 7de5978 commit 70a6dbc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import com.facebook.soloader.nativeloader.NativeLoader;
1212
import com.facebook.soloader.nativeloader.SystemDelegate;
13-
import java.util.Map;
1413
import org.pytorch.executorch.annotations.Experimental;
1514

1615
/**
@@ -43,8 +42,7 @@ public class Module {
4342
* @param loadMode load mode for the module. See constants in {@link Module}.
4443
* @return new {@link org.pytorch.executorch.Module} object which owns the model module.
4544
*/
46-
public static Module load(
47-
final String modelPath, int loadMode) {
45+
public static Module load(final String modelPath, int loadMode) {
4846
if (!NativeLoader.isInitialized()) {
4947
NativeLoader.init(new SystemDelegate());
5048
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import com.facebook.jni.HybridData;
1212
import com.facebook.jni.annotations.DoNotStrip;
1313
import com.facebook.soloader.nativeloader.NativeLoader;
14-
import java.util.Map;
1514
import org.pytorch.executorch.annotations.Experimental;
1615

1716
/**
@@ -29,8 +28,7 @@ class NativePeer {
2928
private final HybridData mHybridData;
3029

3130
@DoNotStrip
32-
private static native HybridData initHybrid(
33-
String moduleAbsolutePath, int loadMode);
31+
private static native HybridData initHybrid(String moduleAbsolutePath, int loadMode);
3432

3533
NativePeer(String moduleAbsolutePath, int loadMode) {
3634
mHybridData = initHybrid(moduleAbsolutePath, loadMode);

0 commit comments

Comments
 (0)