the bins.
  * **weight** (*Tensor*) -- If provided, weight should have the
    same shape as input. Each value in input contributes its
    associated weight towards its bin's result.

  * **density** (*bool*) -- If False, the result will contain the
    count (or total weight) in each bin. If True, the result is
    the value of the probability density function over the bins,
    normalized such that the integral over the range of the bins
    is 1.

  * **out** (*Tensor**, **optional*) -- the output tensor. (tuple,
    optional): The result tuple of two output tensors (hist,
    bin_edges).

Returns:
      1D Tensor containing the values of the histogram.
      bin_edges(Tensor): 1D Tensor containing the edges of the
      histogram bins.
Return type:
      hist (Tensor)
Example:
  >>> torch.histogram(torch.tensor([1., 2, 1]), bins=4, range=(0., 3.), weight=torch.tensor([1., 2., 4.]))
