# 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,