Variable - Maple Help

Online Help

All Products    Maple    MapleSim


DeepLearning

  

Variable

  

create a Tensor Variable

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Variable(val,opts)

Parameters

val

-

list,Matrix,Vector,Array,DataFrame, or DataSeries; initial values

opts

-

zero or more options as specified below

Options

• 

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.

• 

name = string

  

The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.

Description

• 

The Variable(val,opts) command creates a Tensor variable in the active dataflow graph with initial value given by val.

• 

This function is part of the DeepLearning package, so it can be used in the short form Variable(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[Variable](..).

Examples

withDeepLearning:

VVariable2.0,datatype=float8

VDeepLearning TensorName: Variable:0Shape: undefinedData Type: float[8]

(1)

Compatibility

• 

The DeepLearning[Variable] command was introduced in Maple 2018.

• 

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

• 

The DeepLearning[Variable] command was updated in Maple 2021.

See Also

DeepLearning Overview