def generate_config(
        cls,
        accelerator_spec: AcceleratorSpec,
        config: Optional[dict[str, Any]] = None,
        point: Optional[dict[str, Any]] = None,
        disable_search: Optional[bool] = False,
    ) -> type[BasePassConfig]:
        """Get the configuration for the pass at a specific point in the search space."""
        assert accelerator_spec is not None, "Please specify the accelerator spec for the pass"

        point = point or {}
        config_class, fixed_values, search_params = cls.get_config_params(accelerator_spec, config, disable_search)
        assert set(point.keys()).intersection(set(search_params.keys())) == point.keys(), (
            "Search point is not in the search space."
        )
        return config_class.parse_obj({**fixed_values, **search_params, **point})
Get the configuration for the pass at a specific point in the search space.
olive/passes/olive_pass.py