We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788b4da commit 80a5d1cCopy full SHA for 80a5d1c
tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/SavedModelBundle.java
@@ -29,6 +29,7 @@
29
import java.util.LinkedHashMap;
30
import java.util.List;
31
import java.util.Map;
32
+import java.util.Objects;
33
import java.util.stream.Collectors;
34
import org.bytedeco.javacpp.BytePointer;
35
import org.bytedeco.javacpp.PointerScope;
@@ -432,7 +433,7 @@ private static SavedModelBundle load(
432
433
}
434
435
private static void validateTags(String[] tags) {
- if (tags == null || Arrays.stream(tags).anyMatch(t -> t == null || t.isEmpty())) {
436
+ if (tags == null || Arrays.stream(tags).anyMatch(Objects::isNull)) {
437
throw new IllegalArgumentException("Invalid tags: " + Arrays.toString(tags));
438
439
0 commit comments