def inspect_updatable_layers(self):
        """ Prints all updatable layers with their inputs and outputs.
        """
        for _, layer in enumerate(self.nn_spec.layers[::-1]):
            if layer.isUpdatable:
                (
                    layer_type,
                    name,
                    in_blobs,
                    out_blobs,
                    _,
                ) = _summarize_network_layer_info(layer)
                print("Name: {} (Type: {})".format(name, layer_type))
                print(" " * 10 + "Input blobs: {}".format(in_blobs))
                print(" " * 10 + "Output blobs: {}".format(out_blobs))
 Prints all updatable layers with their inputs and outputs.
        
coremltools/models/neural_network/builder.py