(ctx, func, event_fn, event_t, state_t)
return event_t.detach(), state_t.detach()
event_t is the solution to event_fn
event_t is the solution to event_fn
event_t is the solution to event_fn
def forward(ctx, func, event_fn, event_t, state_t):
        """ event_t is the solution to event_fn """
        ctx.func = func
        ctx.event_fn = event_fn
        ctx.save_for_backward(event_t, state_t)
        return event_t.detach(), state_t.detach()
def forward ( ctx , func , event_fn , event_t , state_t ) : ctx . func = func ctx . event_fn = event_fn ctx . save_for_backward ( event_t , state_t ) return event_t . detach ( ) , state_t . detach ( )