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

Function length

python/util/blocks.py:12–24  ·  view source on GitHub ↗

Get true length of sequences (without padding), and mask for true-length in max-length. Input of shape: (batch_size, max_seq_length, hidden_dim) Output shapes, length: (batch_size) mask: (batch_size, max_seq_length, 1)

(sequence)

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