Args:
input (Tensor): the input tensor
- dim (int or tuple of ints): the dimension or dimensions to reduce
+ dim (int): the dimension to reduce
keepdim (bool): whether the output tensor has :attr:`dim` retained or not
out (Tensor, optional): the output tensor
def meshgrid(*tensors, **kwargs):
r"""Take :math:`N` tensors, each of which can be either scalar or 1-dimensional
-vector, and create :math:`N` N-dimensional grids, where the :math:`i`th grid is defined by
-expanding the :math:`i`th input over dimensions defined by other inputs.
+vector, and create :math:`N` N-dimensional grids, where the :math:`i` :sup:`th` grid is defined by
+expanding the :math:`i` :sup:`th` input over dimensions defined by other inputs.
Args:
assigning weight to each of the classes.
This is particularly useful when you have an unbalanced training set.
- The `input` is expected to contain scores for each class.
+ The `input` is expected to contain raw, unnormalized scores for each class.
- `input` has to be a Tensor of size either :math:`(minibatch, C)` or
+ `input` has to be a Tensor of size either :math:`(minibatch, C)` or
:math:`(minibatch, C, d_1, d_2, ..., d_K)`
with :math:`K \geq 2` for the `K`-dimensional case (described later).