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.
Loading
Please sign in to comment