DeepLearning - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

DeepLearning

  

Restore

  

save and restore sessions

  

Save

  

save and restore sessions

 

Calling Sequence

Parameters

Description

Details

Examples

Compatibility

Calling Sequence

Restore(path)

Save(path)

Parameters

path

-

string; path to checkpoint file

Description

• 

The Restore(path) command loads a saved computation session to memory from a checkpoint file located at path.

• 

The Save(path) command saves a computation session in memory to a checkpoint file located at path.

• 

These functions are part of the DeepLearning package, so they can be used in the short form Restore(..) and Save(..) only after executing the command with(DeepLearning). However, they can always be accessed through the long form of the command by using DeepLearning[Restore](..) or DeepLearning[Save](..).

Details

• 

For more information about saving models, see the TensorFlow Python API documentation for saved models.

Examples

Examples of Einstein summation on vectors

withDeepLearning:

vVariable1.0,0.5,datatype=float8

vDeepLearning TensorName: Variable:0Shape: [2]Data Type: float[8]

(1)

cConstant1.5,3.0,datatype=float8

cDeepLearning TensorName: Const:0Shape: [2]Data Type: float[8]

(2)

AssignAddv,c

DeepLearning TensorName: AssignAdd:0Shape: [2]Data Type: float[8]

(3)

sessGetDefaultSession

sessDeepLearning Session<tensorflow.python.client.session.InteractiveSession object at 0x7f44d3804350>

(4)

sess:-RunVariablesInitializer

Python:−None

(5)

Save/tmp/model.ckpt

Restore/tmp/model.ckpt

Compatibility

• 

The DeepLearning[Restore] and DeepLearning[Save] commands were introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

DeepLearning Overview