DeepLearning
GetVariable
fetch reference to new or existing Tensor Variable
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
GetVariable(nm,opts)
nm
-
string; name of the variable to retrieve
opts
zero or more options as specified below
datatype = one of string,truefalse,integer[4],integer[8],float[4],float[8],complex[4], or complex[8]
The value of option datatype specifies the type of data this Tensor will hold. By default, the datatype is inferred from the initial data val.
shape = list(nonnegint)
Specifies the shape of the variable.
The GetVariable(nm,opts) command retrieves a reference to a Tensor variable in the active dataflow graph with name nm.
This function is part of the DeepLearning package, so it can be used in the short form GetVariable(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[GetVariable](..).
with⁡DeepLearning:
V≔Variable⁡2.0,datatype=float8,name=foo
V≔DeepLearning VariableName: foo:0Shape: [1]Data Type: float[8]
The DeepLearning[GetVariable] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
Download Help Document