(tensor, mask)
Applies binary mask in-place.

    :param tensor: PyTorch tensor
    :type tensor: `torch.Tensor`
    :param mask: Binary mask
    :type mask: `torch.Tensor`
Applies binary mask in-place.
Applies binary mask in - place .
def apply_mask_inplace(tensor, mask):
    """
    Applies binary mask in-place.

    :param tensor: PyTorch tensor
    :type tensor: `torch.Tensor`
    :param mask: Binary mask
    :type mask: `torch.Tensor`
    """
    #assert isinstance(tensor, torch.Tensor)
    tensor.mul_(mask.type(tensor.type()))
def apply_mask_inplace ( tensor , mask ) : #assert isinstance(tensor, torch.Tensor) tensor . mul_ ( mask . type ( tensor . type ( ) ) )