View source: R/compiler-TransformRecipe.R
TransformRecipe | R Documentation |
Recipe describes actual computation pathway. Can be applied to a tensor or variable.
TransformRecipe(
elementary_axes_lengths,
axis_name2elementary_axis,
input_composition_known_unknown,
axes_permutation,
first_reduced_axis,
added_axes,
output_composite_axes
)
elementary_axes_lengths |
Integer vector. List of sizes for elementary axes as they appear in the input (left) expression. This is what (after computing unknown parts) will be a shape after first transposition. This does not include any ellipsis dimensions. |
axis_name2elementary_axis |
|
input_composition_known_unknown |
List of list(known, unknown). known and unknown are integer vectors containing axis positions. These unknown and unknown integer vectors represent an unordered set and are always sorted to help with testing. ascending order for deterministic output. |
axes_permutation |
Integer vector. Permutation applied to elementary axes, if ellipsis is absent. |
first_reduced_axis |
Integer of length 1. First position of reduced axes. Permutation puts reduced axes in the end, we only need to know the first position. |
added_axes |
|
output_composite_axes |
List of integer vectors. Ids of axes as they appear in result. Again pointers to elementary_axes_lengths, only used to infer result dimensions. |
An object of class 'TransformRecipe'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.