torch_rand_ab: Uniform Random numbers between values a and b

View source: R/utility-functions.R

torch_rand_abR 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


RGAN documentation built on March 30, 2022, 1:07 a.m.