Parameter

Description

Parameters are nodes that represent the arguments that will be passed to user-defined functions. Function creation requires a sequence of parameters.

Attributes

Name Description
element_type The element::Type of the parameter.
shape The Shape of the parameter.
cacheable True if the parameter is not expected to be frequently updated.

Outputs

Name Element type Shape
output element_type shape

A Parameter produces the value of the tensor passed to the function in the position of the parameter in the function’s arguments. The passed tensor must have the element type and shape specified by the parameter.

Backprop

\[\leftarrow \Delta\]

C++ Interface

class Parameter : public ngraph::op::Op

A function parameter.

Parameters are nodes that represent the arguments that will be passed to user-defined functions. Function creation requires a sequence of parameters. Basic graph operations do not need parameters attached to a function.

Public Functions

Parameter(const ngraph::element::Type &element_type, const PartialShape &pshape, const bool cacheable = false)

Constructions a tensor view-typed parameter node.

Parameters
  • element_type: The element type of the parameter.
  • pshape: The partial shape of the parameter.
  • cacheable: True if the parameter is not expected to be frequently updated.

void validate_and_infer_types()

Throws if the node is invalid.