how to input multi features for tensorflow model inference
问题 I'm trying to model serving test. Now, I'm following this example "https://www.tensorflow.org/beta/guide/saved_model" This example is OK. But, In my case, I have multi input features. loaded = tf.saved_model.load(export_path) infer = loaded.signatures["serving_default"] print(infer.structured_input_signature) => ((), {'input1': TensorSpec(shape=(None, 1), dtype=tf.int32, name='input1'), 'input2': TensorSpec(shape=(None, 1), dtype=tf.int32, name='input2')}) In example, for single input