Commit 6f8012b7 authored by Aman Gupta's avatar Aman Gupta
Browse files

Removing export_outputs value from TPUEstimator. This is not required with TPUEstimators

parent dfe2a43f
...@@ -96,10 +96,7 @@ def model_fn(features, labels, mode, params): ...@@ -96,10 +96,7 @@ def model_fn(features, labels, mode, params):
'probabilities': tf.nn.softmax(logits), 'probabilities': tf.nn.softmax(logits),
'label': labels, 'label': labels,
} }
return tf.contrib.tpu.TPUEstimatorSpec(mode, predictions=predictions, return tf.contrib.tpu.TPUEstimatorSpec(mode, predictions=predictions)
export_outputs={
'classify': tf.estimator.export.PredictOutput(predictions)
})
logits = model(image, training=(mode == tf.estimator.ModeKeys.TRAIN)) logits = model(image, training=(mode == tf.estimator.ModeKeys.TRAIN))
loss = tf.losses.sparse_softmax_cross_entropy(labels=labels, logits=logits) loss = tf.losses.sparse_softmax_cross_entropy(labels=labels, logits=logits)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment