public KerasModelBuilder modelJsonInputStream ( InputStream modelJsonInputStream ) throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; IOUtils . copy ( modelJsonInputStream , byteArrayOutputStream ) ; this . modelJson = new String ( byteArrayOutputStream . toByteArray ( ) ) ; return this ; }
Set model architecture from input stream of model JSON .