R/tbl-gpu.R
is_tbl_gpu.Rd
Checks whether an object inherits from the tbl_gpu class.
tbl_gpu
is_tbl_gpu(x)
An R object to test.
TRUE if x is a tbl_gpu object, FALSE otherwise.
TRUE
x
FALSE
if (has_gpu()) { gpu_df <- tbl_gpu(mtcars) is_tbl_gpu(gpu_df) is_tbl_gpu(mtcars) } #> [1] FALSE