keras/src/layers/layer.py/Layer/get_weights
class Layer:    def get_weights(self):
        """Return the values of `layer.weights` as a list of NumPy arrays."""
        return [v.numpy() for v in self.weights]