oa::Gru

Gru class in the OA Ml public surface.

Inheritance

public Module

Public Methods

oa::Matrix oa::Gru::forward(const oa::Matrix & inInput)
oa::I32 oa::Gru::hiddenSize()
oa::I32 oa::Gru::inputSize()
oa::I32 oa::Gru::numLayers()
oa::Matrix oa::Gru::step(const oa::Matrix & inInput, oa::Matrix & inOutHidden, oa::I32 inLayer = 0)
oa::Matrix oa::Gru::zeroState(oa::I32 inBatch, oa::I32 inLayer = 0)

Constructor & Destructor Documentation

oa::Gru::Gru( oa::I32 inInputSize, oa::I32 inHiddenSize, oa::I32 inNumLayers = 1, bool inBias = true )
No public source comment is attached to this declaration.

Parameters

inInputSize
oa::I32

inHiddenSize
oa::I32

inNumLayers
oa::I32

Default: 1

inBias
bool

Default: true

Public Method Documentation

oa::Matrix oa::Gru::forward( const oa::Matrix & inInput )
No public source comment is attached to this declaration.

Parameters

inInput
const oa::Matrix &

Returns

oa::Matrix

The declared return value.

oa::I32 oa::Gru::hiddenSize()
No public source comment is attached to this declaration.

Returns

oa::I32

The declared return value.

oa::I32 oa::Gru::inputSize()
No public source comment is attached to this declaration.

Returns

oa::I32

The declared return value.

oa::I32 oa::Gru::numLayers()
No public source comment is attached to this declaration.

Returns

oa::I32

The declared return value.

oa::Matrix oa::Gru::step( const oa::Matrix & inInput, oa::Matrix & inOutHidden, oa::I32 inLayer = 0 )
No public source comment is attached to this declaration.

Parameters

inInput
const oa::Matrix &

inOutHidden
oa::Matrix &

inLayer
oa::I32

Default: 0

Returns

oa::Matrix

The declared return value.

oa::Matrix oa::Gru::zeroState( oa::I32 inBatch, oa::I32 inLayer = 0 )
No public source comment is attached to this declaration.

Parameters

inBatch
oa::I32

inLayer
oa::I32

Default: 0

Returns

oa::Matrix

The declared return value.