parameters: (blob, return_diff=False)
docstring: Convert a blob proto to an array. In default, we will just return the data,
    unless return_diff is True, in which case we will return the diff.
docstring_summary: Convert a blob proto to an array. In default, we will just return the data,
    unless return_diff is True, in which case we will return the diff.
docstring_tokens: Convert a blob proto to an array . In default we will just return the data unless return_diff is True in which case we will return the diff .
function: def blobproto_to_array(blob, return_diff=False):
    """Convert a blob proto to an array. In default, we will just return the data,
    unless return_diff is True, in which case we will return the diff.
    """
    if return_diff:
      return np.array(blob.diff).reshape(
          blob.num, blob.channels, blob.height, blob.width)
    else:
      return np.array(blob.data).reshape(
          blob.num, blob.channels, blob.height, blob.width)
function_tokens: def blobproto_to_array ( blob , return_diff = False ) : if return_diff : return np . array ( blob . diff ) . reshape ( blob . num , blob . channels , blob . height , blob . width ) else : return np . array ( blob . data ) . reshape ( blob . num , blob . channels , blob . height , blob . width )