parameters: (event_file_path)
return_statement: return tensor_value
docstring: Load a tensor from an event file.
  
    Assumes that the event file contains a Event protobuf and the Event protobuf
    contains a tensor.
  
    Args:
      event_file_path: Path to the event file.
  
    Returns:
      The tensor value loaded from the event file. For uninitialized tensors,
      return None.
docstring_summary: Load a tensor from an event file.
docstring_tokens: Load a tensor from an event file .
function: def load_tensor_from_event_file(event_file_path):
    """Load a tensor from an event file.
  
    Assumes that the event file contains a Event protobuf and the Event protobuf
    contains a tensor.
  
    Args:
      event_file_path: Path to the event file.
  
    Returns:
      The tensor value loaded from the event file. For uninitialized tensors,
      return None.
    """
    event = event_pb2.Event()
    with open(event_file_path, "rb") as f:
      event.ParseFromString(f.read())
  
      if (event.summary.value[0].tensor.tensor_content or
          event.summary.value[0].tensor.string_val):
        # Initialized tensor.
        tensor_value = tensor_util.MakeNdarray(event.summary.value[0].tensor)
      else:
        # Uninitialized tensor.
        tensor_value = None
  
    return tensor_value
function_tokens: def load_tensor_from_event_file ( event_file_path ) : event = event_pb2 . Event ( ) with open ( event_file_path , "rb" ) as f : event . ParseFromString ( f . read ( ) ) if ( event . summary . value [ 0 ] . tensor . tensor_content or event . summary . value [ 0 ] . tensor . string_val ) : # Initialized tensor. tensor_value = tensor_util . MakeNdarray ( event . summary . value [ 0 ] . tensor ) else : # Uninitialized tensor. tensor_value = None return tensor_value