torch_is_complex: Is_complex

View source: R/gen-namespace.R

torch_is_complexR Documentation

Is_complex

Description

Is_complex

Usage

torch_is_complex(self)

Arguments

self

(Tensor) the PyTorch tensor to test

is_complex(input) -> (bool)

Returns TRUE if the data type of input is a complex data type i.e., one of torch_complex64, and torch.complex128.


torch documentation built on May 29, 2024, 9:54 a.m.