Method
__init__
(self, hidden_size, old_property, property, init_method_std=0.02)
Source from the content-addressed store, hash-verified
| 19 | |
| 20 | class PosMixin(InterpolatedPositionEmbeddingMixin): |
| 21 | def __init__(self, hidden_size, old_property, property, init_method_std=0.02): |
| 22 | super().__init__(hidden_size, old_property, property, init_method_std=init_method_std) |
| 23 | self.hidden_size = hidden_size |
| 24 | |
| 25 | def reinit(self, parent_model=None): |
| 26 | old_weight = self.transformer.position_embeddings.weight.data |
Callers
nothing calls this directly
Tested by
no test coverage detected