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

Online Help

All Products    Maple    MapleSim


convert/DeepLearning

convert to DeepLearning object

 

Calling Sequence

Parameters

Description

Supported TensorFlow types and DeepLearning equivalents

Examples

Compatibility

Calling Sequence

convert(expr, DeepLearning)

Parameters

expr

-

python object

Description

• 

convert(expr, DeepLearning) takes a object of type python corresponding to a TensorFlow object and returns an equivalent object from the DeepLearning package.

• 

Note that TensorFlow defines a very wide variety of objects, and only a subset of these have equivalents in DeepLearning. Attempting conversion of unsupported object types will result in an error.

• 

To perform the opposite conversion, from a DeepLearning object to an object of type python, use convert/python.

Supported TensorFlow types and DeepLearning equivalents

tensorflow.feature_column

FeatureColumn

tensorflow.GradientTape

GradientTape

tensorflow.keras.layers.Layer

Layer

tensorflow.keras.Model

Model

tensorflow.keras.optimizers.Optimizer

Optimizer

tensorflow.estimator.Estimator

Estimator

tensorflow.Session

Session

tensorflow.Tensor

Tensor

tensorflow.Variable

Variable

Examples

Convert a TensorFlow Tensor to a DeepLearning Tensor.

Python:-ImportModuletensorflow

tPython:-EvalStringtensorflow.constant([[1,2,3]])

t<Python object: tf.Tensor([[1 2 3]], shape=(1, 3), dtype=int32)>

(1)

convertt&comma;DeepLearning

DeepLearning TensorShape: [1, 3]Data Type: integer[4]

(2)

Compatibility

• 

The convert/DeepLearning command was introduced in Maple 2022.

• 

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

See Also

convert

convert/maple

convert/python

DeepLearning