Public Member Functions
ngraph::VariableValue Class Reference

#include <variable_value.hpp>

Public Member Functions

 VariableValue ()=default
 Constructs an uninitialized VariableValue.
 
 VariableValue (HostTensorPtr value)
 Constructor for VariableValue. More...
 
 VariableValue (HostTensorPtr value, bool reset)
 Constructor for VariableValue. More...
 
void set_reset (bool reset)
 Sets the reset flag to a new state. More...
 
bool get_reset () const
 Returns the current reset flag state.
 
const HostTensorPtr & get_value () const
 Returns the current stored data.
 
void set_value (const HostTensorPtr &value)
 Sets new values for Variable. More...
 

Detailed Description

VariableValue stores data and state (reset flag) for a Variable, and provides an interface for changing them.

Constructor & Destructor Documentation

◆ VariableValue() [1/2]

ngraph::VariableValue::VariableValue ( HostTensorPtr  value)
inlineexplicit

Constructor for VariableValue.

Parameters
valueThe data for Variable.

◆ VariableValue() [2/2]

ngraph::VariableValue::VariableValue ( HostTensorPtr  value,
bool  reset 
)
inline

Constructor for VariableValue.

Parameters
valueData for Variable.
resetThe current state of the reset flag.

Member Function Documentation

◆ set_reset()

void ngraph::VariableValue::set_reset ( bool  reset)
inline

Sets the reset flag to a new state.

Parameters
resetThe new state of the reset flag.

◆ set_value()

void ngraph::VariableValue::set_value ( const HostTensorPtr &  value)
inline

Sets new values for Variable.

Parameters
valueNew data for Variable.

The documentation for this class was generated from the following file: