DeepLearning - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Managing Tensors : DeepLearning/Placeholder

DeepLearning

  

Placeholder

  

define a placeholder for a Tensor

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Placeholder(val,shape,opts)

Parameters

val

-

type or Tensor

shape

-

(optional) dimensions of the placeholder

opts

-

zero or more options as described below

Options

• 

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 Placeholder(val,shape) command creates a placeholder Tensor in the active dataflow graph.

• 

The parameter val can be a type or a Tensor.

• 

If val is a type, a value must be supplied for this placeholder when the the graph is executed.

• 

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

Examples

withDeepLearning:

PPlaceholderfloat8

PDeepLearning TensorName: Placeholder:0Shape: undefinedData Type: float[8]

(1)

Compatibility

• 

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

• 

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

See Also

DeepLearning Overview