import struct


def summary_simple_value(summary_value):
  """Returns the scalar parsed from the summary proto tensor_value bytes."""

  return struct.unpack("<f", summary_value.tensor.tensor_content)[0]