View source: R/compiler-TransformRecipe.R
| expand_ellipsis | R Documentation |
Helper for prepare_transformation_recipe().
This function expands each relevant ellipsis ast node in-place into a
sequence of NamedAxisAstNode nodes, where each node will have
a name like "...1", "...2", etc. and an empty src list.
Also does some further validation of the ellipses syntax using ndim.
expand_ellipsis(einops_ast, ndim)
einops_ast |
an EinopsAst |
ndim |
integer. Number of dimensions in the input tensor |
an expanded EinopsAst with ellipses expanded
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.