std1.0.0-beta-7 SafeC docs

std :: ml::module

Function std::recurrent_run

#include <std/ml/module.h> source

generic<C: Recurrent> &FloatTensor recurrent_run(
    &C cell,
    const &FloatTensor xs,
    const &FloatTensor h0,
)

Runs a cell over a sequence xs [T, inputSize] from h0 [1, hiddenSize] and returns the last hidden state [1, hiddenSize] (differentiable through every step).