/.torch.Tensor {rTorch} | R Documentation |
Divide two tensors
Description
This generic is similar to torch$div(a, b)
Usage
## S3 method for class 'torch.Tensor'
a / b
Arguments
a |
tensor |
b |
tensor |
Value
Another tensor representing the division of two tensors.
Examples
## Not run:
a <- torch$Tensor(list(1, 1, 1))
b <- torch$Tensor(list(2, 2, 2))
s <- 2.0
a / b
## End(Not run)
[Package rTorch version 0.4.2 Index]