def _make_histogram(values, bins):
values = values.reshape(-<NUM_LIT:1>)<EOL>counts, limits = np.histogram(values, bins=bins)<EOL>limits = limits[<NUM_LIT:1>:]<EOL>sum_sq = values.dot(values)<EOL>return HistogramProto(min=values.min(),<EOL>max=values.max(),<EOL>num=len(values),<EOL>sum=values.sum(),<EOL>sum_squares=sum_sq,<EOL>bucket_limit=limits,<EOL>bucket=counts)<EOL>
Converts values into a histogram proto using logic from
    https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/lib/histogram/histogram.cc