View source: R/compiler-apply_recipe.R
apply_recipe | R Documentation |
This function applies a TransformRecipe to a tensor, performing rearrangement and reduction as specified by the recipe.
TODO docs for which parts of the compilation pipeline this is.
apply_recipe(backend, recipe, tensor, reduction_type, axes_lengths)
backend |
The |
recipe |
A |
tensor |
A tensor to be transformed |
reduction_type |
A character of length 1 that specifies the type of reduction to apply. |
axes_lengths |
TODO check - I think its just an integer vector? |
A tensor that has been transformed according to the recipe, with the same type (if possible) as the input tensor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.