MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / __init__

Method __init__

architecture/embeddings.py:1517–1522  ·  view source on GitHub ↗
(self, num_classes, hidden_size, dropout_prob)

Source from the content-addressed store, hash-verified

1515 """
1516
1517 def __init__(self, num_classes, hidden_size, dropout_prob):
1518 super().__init__()
1519 use_cfg_embedding = dropout_prob > 0
1520 self.embedding_table = nn.Embedding(num_classes + use_cfg_embedding, hidden_size)
1521 self.num_classes = num_classes
1522 self.dropout_prob = dropout_prob
1523
1524 def token_drop(self, labels, force_drop_ids=None):
1525 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected