import tensorflow as tf

request.model_spec.signature_name = 'serving_default'
# This is correct (default constant).
request.inputs['input'].CopyFrom(make_tensor_proto(input_data,
                                                   shape=input_data.shape))

# Boiler-Plate
response = stub.Predict(request, timeout)

result = response.outputs['output']
print(tf.make_ndarray(result))
