| reshape_output_shape | R Documentation |
The shape of torch_reshape(x, shape), which is what
nn_reshape() infers. The dimension that torch infers from the
number of elements is resolved here whenever that number is known, and stays unknown otherwise.
reshape_output_shape(shape_in, shape, id)
shape_in |
( |
shape |
( |
id |
( |
(integer()) The output shape.
Other Shape Inference:
infer_shapes(),
shape_to_str()
reshape_output_shape(c(NA, 3, 4), c(-1, 12), id = "nn_reshape")
reshape_output_shape(c(NA, 3, 4), \(shape) c(shape[1], 12), id = "nn_reshape")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.