Diff Coverage

Diff: origin/r1.0.0...HEAD, staged and unstaged changes

Source File Diff Coverage (%) Missing Lines
hyper_parallel/core/activation_checkpoint/activation_checkpoint.py 100%  
hyper_parallel/platform/mindspore/activation_checkpoint/checkpoint_exclude_wrapper.py 85.7% 500
hyper_parallel/platform/mindspore/platform.py 100%  
hyper_parallel/platform/platform.py 100%  
hyper_parallel/platform/mindspore/activation_checkpoint/checkpoint_exclude_wrapper.py
496
497
498
499
500
501
502
503
504
        """Initialize a checkpoint exclusion wrapper for a MindSpore Cell or function."""
        if not callable(module):
            raise ValueError("module must be a MindSpore Cell or callable")
        if not isinstance(preserve_inputs, bool):
            raise ValueError("preserve_inputs must be a bool")
        super().__init__(module, track_overlaps=False)
        self.preserve_inputs = preserve_inputs

    def construct(self, *args: Any, **kwargs: Any) -> Any: