diff --git a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ImageNetClasses.java b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ImageNetClasses.java index 419802fe2ca..08e966e6bc8 100644 --- a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ImageNetClasses.java +++ b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ImageNetClasses.java @@ -191,7 +191,8 @@ public class ImageNetClasses { "Scottish deerhound, deerhound", "Weimaraner", "Staffordshire bullterrier, Staffordshire bull terrier", - "American Staffordshire terrier, Staffordshire terrier, American pit bull terrier, pit bull terrier", + "American Staffordshire terrier, Staffordshire terrier, American pit bull terrier, pit bull" + + " terrier", "Bedlington terrier", "Border terrier", "Kerry blue terrier", @@ -330,7 +331,8 @@ public class ImageNetClasses { "cicada, cicala", "leafhopper", "lacewing, lacewing fly", - "dragonfly, darning needle, devil's darning needle, sewing needle, snake feeder, snake doctor, mosquito hawk, skeeter hawk", + "dragonfly, darning needle, devil's darning needle, sewing needle, snake feeder, snake" + + " doctor, mosquito hawk, skeeter hawk", "damselfly", "admiral", "ringlet, ringlet butterfly", @@ -360,7 +362,8 @@ public class ImageNetClasses { "water buffalo, water ox, Asiatic buffalo, Bubalus bubalis", "bison", "ram, tup", - "bighorn, bighorn sheep, cimarron, Rocky Mountain bighorn, Rocky Mountain sheep, Ovis canadensis", + "bighorn, bighorn sheep, cimarron, Rocky Mountain bighorn, Rocky Mountain sheep, Ovis" + + " canadensis", "ibex, Capra ibex", "hartebeest", "impala, Aepyceros melampus", @@ -423,7 +426,8 @@ public class ImageNetClasses { "analog clock", "apiary, bee house", "apron", - "ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel, trash bin", + "ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel," + + " trash bin", "assault rifle, assault gun", "backpack, back pack, knapsack, packsack, rucksack, haversack", "bakery, bakeshop, bakehouse", @@ -491,7 +495,8 @@ public class ImageNetClasses { "carpenter's kit, tool kit", "carton", "car wheel", - "cash machine, cash dispenser, automated teller machine, automatic teller machine, automated teller, automatic teller, ATM", + "cash machine, cash dispenser, automated teller machine, automatic teller machine," + + " automated teller, automatic teller, ATM", "cassette", "cassette player", "castle", @@ -997,7 +1002,8 @@ public class ImageNetClasses { "scuba diver", "rapeseed", "daisy", - "yellow lady's slipper, yellow lady-slipper, Cypripedium calceolus, Cypripedium parviflorum", + "yellow lady's slipper, yellow lady-slipper, Cypripedium calceolus, Cypripedium" + + " parviflorum", "corn", "acorn", "hip, rose hip, rosehip", diff --git a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/EValue.java b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/EValue.java index 28df5c8e48c..7c9c1bd9f6b 100644 --- a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/EValue.java +++ b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/EValue.java @@ -149,6 +149,7 @@ public boolean isDictLongKey() { public static EValue optionalNull() { return new EValue(TYPE_CODE_NULL); } + /** Creates a new {@code EValue} of type {@code Tensor}. */ @DoNotStrip public static EValue from(Tensor tensor) { @@ -156,6 +157,7 @@ public static EValue from(Tensor tensor) { iv.mData = tensor; return iv; } + /** Creates a new {@code EValue} of type {@code bool}. */ @DoNotStrip public static EValue from(boolean value) { @@ -171,6 +173,7 @@ public static EValue from(long value) { iv.mData = value; return iv; } + /** Creates a new {@code EValue} of type {@code float}. */ @DoNotStrip public static EValue from(double value) { @@ -178,6 +181,7 @@ public static EValue from(double value) { iv.mData = value; return iv; } + /** Creates a new {@code EValue} of type {@code str}. */ @DoNotStrip public static EValue from(String value) { @@ -193,6 +197,7 @@ public static EValue listFrom(boolean... list) { iv.mData = list; return iv; } + /** Creates a new {@code EValue} of type {@code List[int]}. */ @DoNotStrip public static EValue listFrom(long... list) { @@ -200,6 +205,7 @@ public static EValue listFrom(long... list) { iv.mData = list; return iv; } + /** Creates a new {@code EValue} of type {@code List[float]}. */ @DoNotStrip public static EValue listFrom(double... list) { @@ -233,6 +239,7 @@ public static EValue listFrom(EValue... array) { iv.mData = array; return iv; } + /** Creates a new {@code EValue} of type {@code Tuple[T0, T1, ...]}. */ @DoNotStrip public static EValue tupleFrom(EValue... array) { @@ -248,6 +255,7 @@ public static EValue dictStringKeyFrom(Map map) { iv.mData = map; return iv; } + /** Creates a new {@code EValue} of type {@code Dict[int, V]}. */ @DoNotStrip public static EValue dictLongKeyFrom(Map map) { diff --git a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/Tensor.java b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/Tensor.java index 809a1167779..30500d29804 100644 --- a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/Tensor.java +++ b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/executor/Tensor.java @@ -362,7 +362,9 @@ public long[] shape() { return Arrays.copyOf(shape, shape.length); } - /** @return data type of this tensor. */ + /** + * @return data type of this tensor. + */ public abstract DType dtype(); // Called from native @@ -646,6 +648,7 @@ private static void checkShapeAndDataCapacityConsistency(int dataCapacity, long[ numel, Arrays.toString(shape)); } + // endregion checks // Called from native