torch_rand_ab {RGAN}R Documentation

Uniform Random numbers between values a and b

Description

Provides a function to sample torch tensors from an arbitrary uniform distribution.

Usage

torch_rand_ab(shape, a = -1, b = 1, ...)

Arguments

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

Value

A sample from the specified uniform distribution in a tensor with the specified shape


[Package RGAN version 0.1.1 Index]