jjzjj

ServingInputReceiver

全部标签

python - TensorFlow Estimator ServingInputReceiver 功能与 receiver_tensors : when and why?

在previousquestion中serving_input_receiver_fn的目的和结构在answer中进行了探索。:defserving_input_receiver_fn():"""Forthesakeoftheexample,let'sassumeyourinputtothenetworkwillbea28x28grayscaleimagethatyou'llthenpreprocessasneeded"""input_images=tf.placeholder(dtype=tf.uint8,shape=[None,28,28,1],name='input_images