Diff Coverage

Diff: origin/master...HEAD, staged and unstaged changes

Source File Diff Coverage (%) Missing Lines
hyper_parallel/platform/mindspore/activation_checkpoint/sac.py 100%  
hyper_parallel/platform/mindspore/platform.py 50.0% 2011-2012
hyper_parallel/platform/mindspore/platform_graph.py 0.0% 56-57,59
hyper_parallel/platform/platform.py 66.7% 1542
hyper_parallel/platform/torch/activation_checkpoint/sac.py 100%  
hyper_parallel/platform/torch/platform.py 50.0% 1643-1644
hyper_parallel/platform/mindspore/platform.py
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016

    @staticmethod
    def ignore_sac_ops(ignore_ops: list[object | None]) -> None:
        # pylint: disable=C0415
        from hyper_parallel.platform.mindspore.activation_checkpoint.sac import ignore_sac_ops
        ignore_sac_ops(ignore_ops)

    @staticmethod
    def async_save_on_cpu(policy_fn=None, group_swap: bool = False):
        # pylint: disable=C0415
hyper_parallel/platform/mindspore/platform_graph.py
52
53
54
55
56
57
58
59
60
61
62
63
    def create_selective_checkpoint_contexts(policy_fn_or_list, allow_cache_entry_mutation=False, group_swap=False):
        raise NotImplementedError("create_selective_checkpoint_contexts is not supported on MindSpore Graph platform")

    @staticmethod
    def ignore_sac_ops(ignore_ops: list[object | None]) -> None:
        raise NotImplementedError("ignore_sac_ops is not supported on MindSpore Graph platform")

    @staticmethod
    def async_save_on_cpu(policy_fn=None, group_swap: bool = False):
        raise NotImplementedError("async_save_on_cpu is not supported on MindSpore Graph platform")

    @staticmethod
hyper_parallel/platform/platform.py
1538
1539
1540
1541
1542
1543
1544
1545
1546
        Args:
            ops (list[object | None]): Iterable of backend-native operator identifiers. Unavailable
                optional operators may be represented by ``None``.
        """
        raise NotImplementedError("Platform subclasses must implement ignore_sac_ops")

    @staticmethod
    def create_selective_checkpoint_contexts(policy_fn_or_list, allow_cache_entry_mutation=False, group_swap=False):
        """Create contexts for selective activation checkpointing.
hyper_parallel/platform/torch/platform.py
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648

    @staticmethod
    def ignore_sac_ops(ignore_ops: list[object | None]) -> None:
        # pylint: disable=C0415
        from hyper_parallel.platform.torch.activation_checkpoint.sac import ignore_sac_ops
        ignore_sac_ops(ignore_ops)

    @staticmethod
    def create_selective_checkpoint_contexts(policy_fn_or_list, allow_cache_entry_mutation=False, group_swap=False):
        # pylint: disable=C0415