TensorFlow 1.4文檔提供了演示Dataset.from_generator的用法的代碼。當我運行的代碼,我得到一個InvalidArgumentError:0-th value returned by pyfunc_0 is int32, but expects int64。 我使用Python 3.6.1。這裏的代碼: def gen():
for i in itertoo
def model_fn(features, labels, mode, params):
"""Model function for Estimator."""
# Connect the first hidden layer to input layer
# (features["x"]) with relu activation
first_hidd