Description Usage Arguments Details Value See Also Examples
Partitions a tensor into pieces of sizes relative to sizes
; e.g. a
tensor with shape (24, 50, 50, 3) partitioned with partition(sizes = c(0.5, 0.5))
results in a list of two tensors of shape (12, 50, 50, 3).
Ranknames are respected for both inputs and return values.
1 |
x |
the tidytensor to apply over. |
sizes |
relative sizes of partitions |
Entries in sizes
are treated as relative, so sizes = c(2, 1, 1)
is equivalent to sizes = c(0.5, 0.25, 0.25)
. Non-integer parition boundaries are
rounded down, and this may result in entries with shape (0, ...), but only when
the size of the first rank is smaller than the number of partitions requested.
a list of tidytensors.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.