tfdbg.load_tensor_from_event

tfdbg.load_tensor_from_event(event)

Defined in tensorflow/python/debug/lib/debug_data.py.

Load a tensor from an Event proto.

Args:

  • event: The Event proto, assumed to hold a tensor value in its summary.value[0] field.

Returns:

The tensor value loaded from the event file, as a numpy.ndarray, if representation of the tensor value by a numpy.ndarray is possible. For uninitialized Tensors, returns None. For Tensors of data types that cannot be represented as numpy.ndarray (e.g., tf.resource), return the TensorProto protobuf object without converting it to a numpy.ndarray.