DeepLearning
SetRandomSeed
create a random Tensor
Calling Sequence
Parameters
Description
Details
Examples
Compatibility
SetRandomSeed(seed)
seed
-
integer[8]
The SetRandomSeed(seed) command sets a seed for the random number generator used by the dataflow graph in DeepLearning computations.
This function is part of the DeepLearning package, so it can be used in the short form SetRandomSeed(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[SetRandomSeed](..).
The implementation of SetRandomSeed uses the tf.set_random_seed command from the TensorFlow Python API. Consult the TensorFlow Python API documentation for tf.set_random_seed for more information on random number generation during TensorFlow computations.
with⁡DeepLearning:
SetRandomSeed⁡2001247
Python:−None
t1≔RandomTensor⁡Gamma⁡4.3,3.4,100
t1≔DeepLearning TensorShape: [100]Data Type: float[4]
The DeepLearning[SetRandomSeed] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
randomize
RandomTools
Download Help Document