W3cubDocs

/TensorFlow Python

tf.contrib.gan.eval.run_image_classifier

Aliases:

  • tf.contrib.gan.eval.classifier_metrics.run_image_classifier
  • tf.contrib.gan.eval.run_image_classifier
tf.contrib.gan.eval.run_image_classifier(
    tensor,
    graph_def,
    input_tensor,
    output_tensor,
    scope='RunClassifier'
)

Defined in tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py.

Runs a network from a frozen graph.

Args:

  • tensor: An Input tensor.
  • graph_def: A GraphDef proto.
  • input_tensor: Name of input tensor in graph def.
  • output_tensor: A tensor name or list of tensor names in graph def.
  • scope: Name scope for classifier.

Returns:

Classifier output if output_tensor is a string, or a list of outputs if output_tensor is a list.

Raises:

  • ValueError: If input_tensor or output_tensor aren't in the graph_def.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/gan/eval/run_image_classifier