    def show_frozen_layers(self):
        """
        Show all names of frozen layers

        Args:
            None.
        Return:
            A list of names of frozen layers
        """
        outs = []
        for name, layer in self.model.named_children():
            flag = 0
            for param in layer.parameters():
                if not param.requires_grad:
                    flag = 1
            if flag == 1:
                outs.append(name)
        # print(f'{len(outs)} frozen layers (names): {outs}')
        return outs
Show all names of frozen layers

Args:
None.
Return:
A list of names of frozen layers
towhee/trainer/utils/layer_freezer.py