Div255#

class torchaug.transforms.Div255(inplace=False)[source]#

Divide a tensor by 255.

Parameters:

inplace (bool, optional) – Bool to make this operation in-place.

Default: False

forward(tensor)[source]#

Divide tensor by 255.

Parameters:

tensor (Tensor) – The tensor to divide.

Return type:

Tensor

Returns:

Divided tensor.