Nothing
#' @export
transform_to_tensor.array <- function(img) {
if (length(dim(img)) == 2)
dim(img) <- c(dim(img), 1)
res <- torch::torch_tensor(img)$permute(c(3, 1, 2))
if (res$dtype == torch::torch_long())
res <- res/255
res
}
#' @export
transform_to_tensor.matrix <- transform_to_tensor.array
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.