Computes any pending operations and returns a tbl_gpu that will
execute all subsequent operations immediately.
Usage
as_eager(.data)
Arguments
.data
A tbl_gpu object.
Value
A tbl_gpu in eager execution mode.
Examples
library(dplyr)if(has_gpu()){# Tables are lazy by default; switch to eager mid-pipelineresult<-tbl_gpu(mtcars)|>filter(mpg>20)|>as_eager()|>mutate(x =hp*2)|># executes immediatelycollect()}