| infer_shapes | R Documentation |
Infer the shapes of the output of a function based on the shapes of the input. This is done as follows:
All NAs are replaced with values 1, 2, 3.
Three tensors are generated for the three shapes of step 1.
The function is called on these three tensors and the shapes are calculated.
If:
the number of dimensions varies, an error is thrown.
the number of dimensions is the same, values are set to NA if the dimension is varying
between the three tensors and otherwise set to the unique value.
infer_shapes(shapes_in, param_vals, output_names, fn, rowwise, id)
shapes_in |
( |
param_vals |
( |
output_names |
( |
fn |
( |
rowwise |
( |
id |
( |
(list())
A list of shapes of the output tensors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.