def init(m):
    if self.wholemodule:
        kaiming_init(m, self.a, self.mode, self.nonlinearity, self.bias, self.distribution)
    else:
        layername = m.__class__.__name__
        basesname = _get_bases_name(m)
        if len((set(self.layer) & set(([layername] + basesname)))):
            kaiming_init(m, self.a, self.mode, self.nonlinearity, self.bias, self.distribution)
def init(m):
    if self.wholemodule:
        kaiming_init(m, self.a, self.mode, self.nonlinearity, self.bias, self.distribution)
    else:
        layername = m.__class__.__name__
        basesname = _get_bases_name(m)
        if len((set(self.layer) & set(([layername] + basesname)))):
            kaiming_init(m, self.a, self.mode, self.nonlinearity, self.bias, self.distribution)