TensorFlow ExportOutputs, PredictOuput, and specifying signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY
问题 Context I have a colab with a very simple demo Estimator for the purpose of learning / understanding the Estimator API with the goal of making a convention for a plug-and-play model with useful bells and whistles of the trade in tack (e.g. early stopping if the validation set stops improving, exporting the model, etc). Each of the three Estimator modes ( TRAIN , EVAL , and PREDICT ) return an EstimatorSpec. According to the docs: __new__( cls, mode, predictions=None, # required by PREDICT