DeepLearning - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Managing Dataflow Graphs : DeepLearning/SetRandomSeed

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 TensorName: random_gamma/Maximum:0Shape: [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