msg="Assigning / modifying buffers of nn.Module during forward pass is not allowed when using cudagraph inside the compiler because it will cause silent errors. Please use eager mode or fix the code. The following code contains clues about which buffer is being modified (please search for the usage of the function `update`):\n"+src# noqa
raiseRuntimeError(msg)
@contextmanager
@contextmanager
defdispatch_to_code(self,index:int):
defdispatch_to_code(self,index:int):
"""Context manager to dispatch to the compiled code.
"""Context manager to dispatch to the compiled code.