def mark_cur_op_complete(self, cur_op: Callable) -> None:
        """
        This function is expected to be called after a function or module
        processing is complete.
        """
        # torch.nn.Module __setattr__ has overhead,
        # this code is the explicit fast path for `self.idx += 1`
        object.__setattr__(self, "idx", self.idx + 1)

        This function is expected to be called after a function or module
        processing is complete.
        
intel_extension_for_pytorch/quantization/_quantization_state.py