| ggml_graph_dup | R Documentation |
Copies graph into ctx. With force_grads = TRUE the copy
carries gradient storage even when the original does not, which is one way to
turn a plain forward graph into one that
ggml_build_backward_expand accepts.
ggml_graph_dup(ctx, graph, force_grads = FALSE)
ctx |
GGML context to allocate the copy in |
graph |
Graph to duplicate |
force_grads |
Logical; give the copy gradient storage (default
|
A new graph object (external pointer)
ggml_build_forward_expand_grads
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.