Diff Coverage

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

Source File Diff Coverage (%) Missing Lines
hyper_parallel/components/functional/mhc_post.py 84.6% 42-43
hyper_parallel/components/functional/mhc_pre.py 88.9% 58-59
hyper_parallel/components/functional/mhc_post.py
38
39
40
41
42
43
44
45
46
47
        # The package is optional and is needed only for the legacy omni backend.
        # pylint: disable=import-outside-toplevel
        try:
            import omni_training_custom_ops  # noqa: F401  # pylint: disable=unused-import
        except ImportError as error:
            raise ImportError("MHC backend='omni' requires omni_training_custom_ops") from error
        # pylint: enable=import-outside-toplevel
        ctx.save_for_backward(x, h_res, h_out, h_post)
        return torch.ops.custom.npu_ai_infra_manifold_constrained_hyper_connection_post(
            x,
hyper_parallel/components/functional/mhc_pre.py
54
55
56
57
58
59
60
61
62
63
        # The package is optional and is needed only for the legacy omni backend.
        # pylint: disable=import-outside-toplevel
        try:
            import omni_training_custom_ops  # noqa: F401  # pylint: disable=unused-import
        except ImportError as error:
            raise ImportError("MHC backend='omni' requires omni_training_custom_ops") from error
        # pylint: enable=import-outside-toplevel
        hin, h_post, h_comb_before, inv_rms, h_mix, h_pre = (
            torch.ops.custom.npu_manifold_constrained_hyper_connection_pre(
                x,