Learn R Programming

einops (version 0.2.1)

create_execution_plan: 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)

Value

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

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.