| ag_device | R Documentation |
Switches all subsequent ag_tensor / ag_param operations to run
on the specified device. Calling ag_device("gpu") initialises the
best available ggml backend (Vulkan, Metal, CUDA, or CPU fallback) the first
time it is called.
ag_device(device)
device |
|
Switching to the CPU moves every ag_buffer on the GPU
to the host first; plan for host memory of about twice the buffers' device
size (R stores the values as doubles).
Invisibly the previous device string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.