div_255#

torchaug.transforms.functional.div_255(tensor, inplace=False)[source]#

Divide the given tensor by 255.

Parameters:
  • tensor (Tensor) – The input tensor.

  • inplace (bool, optional) – Whether to perform the operation inplace.

    Default: False

Return type:

Tensor

Returns:

Scaled tensor by dividing 255.