Commit d60ca252 authored by resec's avatar resec Committed by Jonathan Hseu
Browse files

Constructor with InputStream only for TensorFlowInferenceInterface (#12341)

* InputStream Constructor

Added a InputStream Constructor for TensorFlowInferenceInterface, which support loading model from network or many other situations that we can only have a InputStream of the model.

One thing worth mentioning is that the private modelName field is not set when construct the TensorFlowInferenceInterface with InputStream only, but this field is private and did not use other than the original constructor, so it should be fine.

* Add missing semicolon

* Another missing semi-colon

* Set modelName to empty text to avoid failing

modelName is redundant for model loading from input stream, here is for avoiding error in initialization as modelName is marked final.
parent e650dcfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment