| nn_reshape_output_shape | R Documentation |
Fills in a '-1' axis and checks that the element count is preserved. Shared by the sequential and functional shape passes so the two cannot disagree.
nn_reshape_output_shape(shape, input_shape)
shape |
Target per-sample shape, possibly containing one '-1'. |
input_shape |
Per-sample input shape. |
This check is not cosmetic: 'ggml_reshape_*()' enforces the element count with a 'GGML_ASSERT', which aborts the process rather than raising an R error, so a bad shape would take the whole session down.
The resolved per-sample shape, with no '-1' left.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.