File tree Expand file tree Collapse file tree 3 files changed +1
-2
lines changed
android_test/src/test/java/org/pytorch/executorch Expand file tree Collapse file tree 3 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,5 @@ task makeJar(type: Jar) {
2020 dependencies {
2121 implementation ' com.facebook.fbjni:fbjni-java-only:0.2.2'
2222 implementation ' com.facebook.soloader:nativeloader:0.10.5'
23- testImplementation ' junit:junit:4.13.2'
2423 }
2524}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public void testOptionalTensorListValue() {
129129 Optional .of (Tensor .fromBlob (data [1 ], shape [1 ])));
130130 assertTrue (evalue .isOptionalTensorList ());
131131
132- assertTrue (evalue .toOptionalTensorList ()[0 ].isEmpty ());
132+ assertTrue (! evalue .toOptionalTensorList ()[0 ].isPresent ());
133133
134134 assertTrue (evalue .toOptionalTensorList ()[1 ].isPresent ());
135135 assertTrue (Arrays .equals (evalue .toOptionalTensorList ()[1 ].get ().shape , shape [0 ]));
File renamed without changes.
You can’t perform that action at this time.
0 commit comments