reshape_to_matrix | R Documentation |
Reshapes a >= rank 2 tensor to a rank 2 tensor. The last dimension is preserved; the rest are flattened.
reshape_to_matrix(input_tensor)
input_tensor |
Tensor to reshape. |
The Tensor reshaped to rank 2.
## Not run: with( tensorflow::tf$variable_scope("examples", reuse = tensorflow::tf$AUTO_REUSE ), r3t <- tensorflow::tf$get_variable("r3t", dtype = "int32", shape = c(10, 20, 3) ) ) reshape_to_matrix(r3t) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.