code: public static void convert(String inFile, String outFile)
                      throws IOException, org.nd4j.linalg.exception.ND4JIllegalStateException {
          SameDiff tg = TFGraphMapper.getInstance().importGraph(new File(inFile));
          tg.asFlatFile(new File(outFile));
      }
docs: Converts a file containing a model from the Protocol Buffer format to the Flat
  Buffer format.
  @param inFile input file (.pb format)
  @param outFile output file (.fb format)
  @throws IOException
  @throws org.nd4j.linalg.exception.ND4JIllegalStateException