oa::GradientTape

oa::GradientTape — RAII scope guard that enables autograd for its lifetime. call backward() to execute the recorded backward graph.

Public Methods

void oa::GradientTape::backward(const Matrix & inRoot)
void oa::GradientTape::close()
oa::Status oa::GradientTape::tryBackward(const Matrix & inRoot)

Examples

Constructor & Destructor Documentation

oa::GradientTape::GradientTape()
No public source comment is attached to this declaration.
void oa::GradientTape::~GradientTape()
No public source comment is attached to this declaration.

Public Method Documentation

void oa::GradientTape::backward( const Matrix & inRoot )
No public source comment is attached to this declaration.

Parameters

inRoot
const Matrix &

Returns

void

The declared return value.

void oa::GradientTape::close()
No public source comment is attached to this declaration.

Returns

void

The declared return value.

oa::Status oa::GradientTape::tryBackward( const Matrix & inRoot )
Records backward operations into the active graph. Submission and waiting remain the caller/training-session responsibility.

Parameters

inRoot
const Matrix &

Returns

oa::Status

The declared return value.