Learn R Programming

torch (version 0.0.2)

torch_is_floating_point: Is_floating_point

Description

Is_floating_point

Arguments

input

(Tensor) the PyTorch tensor to test

is_floating_point(input) -> (bool)

Returns True if the data type of input is a floating point data type i.e., one of torch_float64, torch.float32 and torch.float16.