MCPcopy Create free account
hub / github.com/MorvanZhou/NLP-Tutorials / __init__

Method __init__

transformer.py:146–157  ·  view source on GitHub ↗
(self, model_dim, max_len, n_layer, n_head, n_vocab, drop_rate=0.1, padding_idx=0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

PositionEmbeddingClass · 0.70
EncoderClass · 0.70
DecoderClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected