View source: R/utility-functions.R
torch_rand_ab | R Documentation |
Provides a function to sample torch tensors from an arbitrary uniform distribution.
torch_rand_ab(shape, a = -1, b = 1, ...)
shape |
Vector of dimensions of resulting tensor |
a |
Lower bound of uniform distribution to sample from |
b |
Upper bound of uniform distribution to sample from |
... |
Potential additional arguments |
A sample from the specified uniform distribution in a tensor with the specified shape
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.