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)
A tensor that has been transformed according to the recipe, with the same type (if possible) as the input tensor.
The EinopsBackend()
to use for tensor operations.
A TransformRecipe()
that specifies how to transform the
tensor.
A tensor to be transformed
A character of length 1 that specifies the type of reduction to apply.
TODO check - I think its just an integer vector?