is_torch_device: Checks if object is a device

View source: R/device.R

is_torch_deviceR Documentation

Checks if object is a device

Description

Checks if object is a device

Usage

is_torch_device(x)

Arguments

x

object to check


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