convert/DeepLearning
convert to DeepLearning object
Calling Sequence
Parameters
Description
Supported TensorFlow types and DeepLearning equivalents
Examples
Compatibility
convert(expr, DeepLearning)
expr
-
python object
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.
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
Convert a TensorFlow Tensor to a DeepLearning Tensor.
Python:-ImportModule⁡tensorflow
t≔Python:-EvalString⁡tensorflow.constant([[1,2,3]])
t≔<Python object: tf.Tensor([[1 2 3]], shape=(1, 3), dtype=int32)>
convert⁡t,DeepLearning
DeepLearning TensorShape: [1, 3]Data Type: integer[4]
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
Download Help Document