def load_from_path(
        cls,
        path: str,
        compute_units: _ComputeUnit = _ComputeUnit.ALL,
    ) -> "MLComputePlan":
        """
        Loads the compute plan of a compiled model.

        The path must be the location of the ``mlmodelc`` directory.

        Parameters
        ----------
        compiled_model_path : str
            The path to the compiled model.

        Returns
        -------
        The plan for executing the model.

        Examples
        --------
        .. sourcecode:: python

            compute_plan = coremltools.models.compute_plan.MLComputePlan.load_from_path(
                model.get_compiled_path()
            )

            if compute_plan.model_structure.program is None:
                raise ValueError("Unexpected model type.")

            program = compute_plan.model_structure.program
            mainFunction = program["main"]
            for operation in mainFunction.block.operations:
                # Get the compute device usage for the operation.
                compute_device_usage = (
                    compute_plan.get_compute_device_usage_for_mlprogram_operation(operation)
                )
                # Get the estimated cost of executing the operation.
                estimated_cost = compute_plan.get_estimated_cost_for_mlprogram_operation(operation)

        """

        if _MLModelProxy is None:
            raise ValueError("MLComputePlan is not supported.")

        return _MLModelProxy.get_compute_plan(path, compute_units.name)

        Loads the compute plan of a compiled model.

        The path must be the location of the ``mlmodelc`` directory.

        Parameters
        ----------
        compiled_model_path : str
            The path to the compiled model.

        Returns
        -------
        The plan for executing the model.

        Examples
        --------
        .. sourcecode:: python

            compute_plan = coremltools.models.compute_plan.MLComputePlan.load_from_path(
                model.get_compiled_path()
            )

            if compute_plan.model_structure.program is None:
                raise ValueError("Unexpected model type.")

            program = compute_plan.model_structure.program
            mainFunction = program["main"]
            for operation in mainFunction.block.operations:
                # Get the compute device usage for the operation.
                compute_device_usage = (
                    compute_plan.get_compute_device_usage_for_mlprogram_operation(operation)
                )
                # Get the estimated cost of executing the operation.
                estimated_cost = compute_plan.get_estimated_cost_for_mlprogram_operation(operation)

        
coremltools/models/compute_plan.py