torch_is_floating_point: Is_floating_point

View source: R/gen-namespace.R

torch_is_floating_pointR Documentation

Is_floating_point

Description

Is_floating_point

Usage

torch_is_floating_point(self)

Arguments

self

(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.


torch documentation built on June 7, 2023, 6:19 p.m.