SetRandomSeed - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeepLearning

  

SetRandomSeed

  

create a random Tensor

 

Calling Sequence

Parameters

Description

Details

Examples

Compatibility

Calling Sequence

SetRandomSeed(seed)

Parameters

seed

-

integer[8]

Description

• 

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](..).

Details

• 

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.

Examples

withDeepLearning:

SetRandomSeed2001247

Python:−None

(1)

t1RandomTensorGamma4.3,3.4,100

t1DeepLearning TensorShape: [100]Data Type: float[4]

(2)

Compatibility

• 

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