reshape_from_matrix | R Documentation |
Reshapes a rank 2 tensor back to its original rank >= 2 tensor. The final dimension ('width') of the tensor is assumed to be preserved. If a different width is requested, function will complain.
reshape_from_matrix(output_tensor, orig_shape_list)
output_tensor |
Tensor to reshape. What a lousy name for an input. |
orig_shape_list |
Shape to cast Tensor into. |
The Tensor reshaped to rank specified by orig_shape_list.
## Not run: with( tensorflow::tf$variable_scope("examples", reuse = tensorflow::tf$AUTO_REUSE ), r2t <- tensorflow::tf$get_variable("r2t", dtype = "int32", shape = c(10, 20) ) ) reshape_from_matrix(r2t, orig_shape_list = c(5L, 2L, 20L)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.