def METHOD_NAME(self, architecture, meta=False):
    for name, param in self.named_parameters(recurse=True):
        if 'meta' in name and meta:
            yield param
        elif 'blocks' not in name and 'meta' not in name and (not meta):
            yield param
    if not meta:
        for choice_blocks, choice_name in zip(self.blocks, architecture):
            choice_sample = architecture[choice_name]
            for block, arch in zip(choice_blocks, choice_sample):
                if not arch:
                    continue
                for name, param in block.named_parameters(recurse=True):
                    yield param