MCPcopy Create free account
hub / github.com/FLC777/GLAT / __init__

Method __init__

fairseq/modules/linearized_convolution.py:26–29  ·  view source on GitHub ↗
(self, in_channels, out_channels, kernel_size, **kwargs)

Source from the content-addressed store, hash-verified

24 """
25
26 def __init__(self, in_channels, out_channels, kernel_size, **kwargs):
27 super().__init__(in_channels, out_channels, kernel_size, **kwargs)
28 self._linearized_weight = None
29 self.register_backward_hook(self._clear_linearized_weight)
30
31 def state_dict(self, destination=None, prefix="", keep_vars=False):
32 state = ConvTBC.state_dict(self, destination, prefix, keep_vars=keep_vars)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected