Loading sklearn model in Java. Model created with DNNClassifier in python

前端 未结 3 2087
我在风中等你
我在风中等你 2021-02-10 02:48

The goal is to open in Java a model created/trained in python with tensorflow.contrib.learn.learn.DNNClassifier.

At the moment the main issue is to know th

3条回答
  •  情深已故
    2021-02-10 03:36

    The error message offers a clue: the tensor named "input_example_tensor" in the model expects to have string contents, whereas you provided float values.

    Judging by the name of the tensor and your code, I'd guess that the tensor you're feeding is defined in input_fn_utils.py. This tensor is passed to the tf.parse_example() op, which expects a vector of tf.train.Example protocol buffers, serialized as strings.

提交回复
热议问题