tensorflow_lite_support/java/src/javatests/org/tensorflow/lite/support/image/TensorImageInstrumentedTest.java [114:126]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private static TensorBuffer createTensorBuffer(
      DataType dataType, boolean isNormalized, ColorSpaceType colorSpaceType, float delta) {
    switch (colorSpaceType) {
      case RGB:
        return createRgbTensorBuffer(dataType, isNormalized, delta);
      case GRAYSCALE:
        return createGrayscaleTensorBuffer(dataType, isNormalized, delta);
      default:
        break;
    }
    throw new IllegalArgumentException(
        "The ColorSpaceType, " + colorSpaceType + ", is unsupported.");
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tensorflow_lite_support/java/src/javatests/org/tensorflow/lite/support/image/TensorImageTest.java [470:482]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static TensorBuffer createTensorBuffer(
        DataType dataType, boolean isNormalized, ColorSpaceType colorSpaceType, float delta) {
      switch (colorSpaceType) {
        case RGB:
          return createRgbTensorBuffer(dataType, isNormalized, delta);
        case GRAYSCALE:
          return createGrayscaleTensorBuffer(dataType, isNormalized, delta);
        default:
          break;
      }
      throw new IllegalArgumentException(
          "The ColorSpaceType, " + colorSpaceType + ", is unsupported.");
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



