Exemple #1
0
 def __init__(self):
     """Initialization."""
     super().__init__(derivatives=EmbeddingDerivatives(), params=["weight"])
Exemple #2
0
 def __init__(self):
     """Pass derivatives for ``torch.nn.Embedding`` module."""
     super().__init__(EmbeddingDerivatives(), params=["weight"])
Exemple #3
0
 def __init__(self):
     super().__init__(derivatives=EmbeddingDerivatives(), params=["weight"])
Exemple #4
0
 def __init__(self):
     """Initialize."""
     super().__init__(derivatives=EmbeddingDerivatives(),
                      params=["weight"],
                      sum_batch=True)