powered by
This generic is similar to torch$mul(a, b)
torch$mul(a, b)
# S3 method for torch.Tensor *(a, b)
tensor
Another tensor representing the multiplication of two tensors.
# NOT RUN { a <- torch$Tensor(list(1, 1, 1)) b <- torch$Tensor(list(2, 2, 2)) s <- 2.0 a * b # } # NOT RUN { # }
Run the code above in your browser using DataLab