diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-04-30 17:14:50 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-30 17:17:30 -0700 |
commit | b7978d48f4588feb717157a9dbfd2e1df678628b (patch) | |
tree | 383fe49a6465be04fc4195994544eafe26ce27d3 /tensorflow/contrib | |
parent | 64bb1de61377f12859a719448b65b452b03047a7 (diff) |
Internal cleanup.
PiperOrigin-RevId: 194871141
Diffstat (limited to 'tensorflow/contrib')
-rw-r--r-- | tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java | 8 | ||||
-rw-r--r-- | tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java b/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java index 2fc803715b..a43251cad1 100644 --- a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java +++ b/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java @@ -173,8 +173,8 @@ final class NativeInterpreterWrapper implements AutoCloseable { } else { throw new IllegalArgumentException( String.format( - "Input error: %s is not a valid name for any input. " - + "The indexes of the inputs are %s", + "Input error: '%s' is not a valid name for any input. Names of inputs and their " + + "indexes are %s", name, inputsIndexes.toString())); } } @@ -195,8 +195,8 @@ final class NativeInterpreterWrapper implements AutoCloseable { } else { throw new IllegalArgumentException( String.format( - "Input error: %s is not a valid name for any output. " - + "The indexes of the outputs are %s", + "Input error: '%s' is not a valid name for any output. Names of outputs and their " + + "indexes are %s", name, outputsIndexes.toString())); } } diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java b/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java index 61d6c35ec8..210d943724 100644 --- a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java +++ b/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java @@ -195,8 +195,8 @@ public final class InterpreterTest { assertThat(e) .hasMessageThat() .contains( - "WrongInputName is not a valid name for any input. The indexes of the inputs" - + " are {input=0}"); + "'WrongInputName' is not a valid name for any input. Names of inputs and their " + + "indexes are {input=0}"); } int index = interpreter.getInputIndex("input"); assertThat(index).isEqualTo(0); @@ -212,8 +212,8 @@ public final class InterpreterTest { assertThat(e) .hasMessageThat() .contains( - "WrongOutputName is not a valid name for any output. The indexes of the outputs" - + " are {MobilenetV1/Predictions/Softmax=0}"); + "'WrongOutputName' is not a valid name for any output. Names of outputs and their" + + " indexes are {MobilenetV1/Predictions/Softmax=0}"); } int index = interpreter.getOutputIndex("MobilenetV1/Predictions/Softmax"); assertThat(index).isEqualTo(0); |