public class CPURandomization extends java.lang.Object implements ImplementationFor<CPU>
| Constructor and Description |
|---|
CPURandomization() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fillRandomly(T data,
Arg.Seed seed) |
static <T> T |
fillRandomly(T data,
long seed) |
static <T> T |
fillRandomly(T data,
java.lang.String seed) |
static void |
gaussianFrom(long seed,
double[] out) |
static long |
initialScramble(long seed) |
Tensor<?> |
run(ExecutionCall<CPU> call)
This method is the entrypoint for a concrete implementation
of the algorithm to which instances of this interface
belong and the device on which this is implemented.
|
public Tensor<?> run(ExecutionCall<CPU> call)
ImplementationForrun in interface ImplementationFor<CPU>call - The call which ought to be executed on this implementation.public static <T> T fillRandomly(T data,
Arg.Seed seed)
public static <T> T fillRandomly(T data,
java.lang.String seed)
public static <T> T fillRandomly(T data,
long seed)
public static long initialScramble(long seed)
public static void gaussianFrom(long seed,
double[] out)