| ag_concat_rows | R Documentation |
Stacks a above b, like rbind(a, b): both must have the
same number of columns (the batch). Typical use is a critic input built from
observations and an action computed by the actor. The gradient of a
is rows 1..nrow(a) of the incoming gradient and that of b the
rest; an operand without gradient gets none.
ag_concat_rows(a, b)
a, b |
ag_tensors (or matrices) with the same number of columns |
ag_tensor of shape (nrow(a) + nrow(b)) x ncol(a)
ag_slice_rows
a <- ag_tensor(matrix(1:6, 2, 3)); b <- ag_tensor(matrix(7:9, 1, 3))
as.matrix(ag_concat_rows(a, b))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.