MCPcopy Create free account
hub / github.com/dailenson/SDT / forward

Method forward

models/transformer.py:323–339  ·  view source on GitHub ↗

Embed inputs. Args: emb (FloatTensor): Sequence of word vectors ``(seq_len, batch_size, self.dim)`` step (int or NoneType): If stepwise (``seq_len = 1``), use the encoding for this position.

(self, emb, step=None)

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