Belle II Software development
|
Public Member Functions | |
def | __init__ (self, num_embeddings, embedding_dim, padding_idx=None, max_norm=None, norm_type=2, scale_grad_by_freq=False, sparse=False, _weight=None, num_svs=1, num_itrs=1, eps=1e-12) |
Constructor. | |
def | forward (self, x) |
forward | |
Embedding layer with spectral norm We use num_embeddings as the dim instead of embedding_dim here for convenience sake
def __init__ | ( | self, | |
num_embeddings, | |||
embedding_dim, | |||
padding_idx = None , |
|||
max_norm = None , |
|||
norm_type = 2 , |
|||
scale_grad_by_freq = False , |
|||
sparse = False , |
|||
_weight = None , |
|||
num_svs = 1 , |
|||
num_itrs = 1 , |
|||
eps = 1e-12 |
|||
) |
Constructor.
Reimplemented from SN.
Definition at line 807 of file ieagan.py.
def forward | ( | self, | |
x | |||
) |