create_execution_plan: Reconstruct all actual parameters using shape.

View source: R/compiler-apply_recipe.R

create_execution_planR Documentation

Reconstruct all actual parameters using shape.

Description

This implements ⁠_reconstruct_from_shape_uncached⁠ from the python implementation of einops. In the future, a cached version may be implemented.

Usage

create_execution_plan(recipe, shape, axes_dims)

Arguments

recipe

a populated TransformRecipe() object

shape

A vector of integers representing the shape of the tensor.

axes_dims

A named list of axes names to their dimensions/lengths. May also be an empty list.

Value

An EinopsExecutionPlan object that contains the execution plan for transforming tensors according to the specified recipe and shape.


einops documentation built on Sept. 9, 2025, 5:29 p.m.