MCPcopy Create free account
hub / github.com/YichenGong/Densely-Interactive-Inference-Network / last_output

Function last_output

python/util/blocks.py:46–57  ·  view source on GitHub ↗

To get the last hidden layer form a dynamically unrolled RNN. Input of shape (batch_size, max_seq_length, hidden_dim). true_length: Tensor of shape (batch_size). Such a tensor is given by the length() function. Output of shape (batch_size, hidden_dim).

(output, true_length)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected