code: public INDArray toRaveledTensor(File file) {
          try {
              BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file));
              INDArray ret = toRaveledTensor(bis);
              bis.close();
              return ret.ravel();
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Changes the input stream in to an
  bgr based raveled(flattened) vector
  
  @param file the input stream to convert
  @return the raveled bgr values for this input stream