TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

Module: tf.contrib.util

View source on GitHub

Utilities for dealing with Tensors.


loader module: Utilities for loading op libraries.


constant_value(...): Returns the constant value of the given tensor, if efficiently calculable.

make_ndarray(...): Create a numpy ndarray from a tensor.

make_tensor_proto(...): Create a TensorProto.

ops_used_by_graph_def(...): Collect the list of ops used by a graph.

stripped_op_list_for_graph(...): Collect the stripped OpDefs for ops used by a graph.