You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mxnet.apache.org by Chris Olivier <cj...@gmail.com> on 2019/09/23 02:30:28 UTC

mxnet ctrl-c

question: how does gluon handle ctrl-c during a “long” imperative operation
where the GLI hasn’t been released yet? is it supposed to be caught in c++
or python or no special handling for it at the moment?

Re: mxnet ctrl-c

Posted by Anirudh Subramanian <an...@gmail.com>.
That would be great. Thanks Chris!

On Mon, Sep 23, 2019 at 12:11 PM Chris Olivier <cj...@gmail.com>
wrote:

> thanks for the response. i trying to write to a “gpu” (sort of) with mxnet
> and sometimes takes a long time and having no way to interrupt it
> gracefully is “bad”. I will try to experiment with chaining back to the
> python through normal signal channels. if i can get it to work i’ll post a
> PR.
>
> On Mon, Sep 23, 2019 at 12:00 PM Anirudh Subramanian <
> anirudh2290@gmail.com>
> wrote:
>
> > Currently I don't see any special handling in the code base for this. We
> > have atexit.register which invokes MXInvokeShutdown from python but that
> > doesnt work for signals.
> >
> > Anirudh
> >
> > On Sun, Sep 22, 2019 at 7:30 PM Chris Olivier <cj...@gmail.com>
> > wrote:
> >
> > > question: how does gluon handle ctrl-c during a “long” imperative
> > operation
> > > where the GLI hasn’t been released yet? is it supposed to be caught in
> > c++
> > > or python or no special handling for it at the moment?
> > >
> >
>

Re: mxnet ctrl-c

Posted by Chris Olivier <cj...@gmail.com>.
thanks for the response. i trying to write to a “gpu” (sort of) with mxnet
and sometimes takes a long time and having no way to interrupt it
gracefully is “bad”. I will try to experiment with chaining back to the
python through normal signal channels. if i can get it to work i’ll post a
PR.

On Mon, Sep 23, 2019 at 12:00 PM Anirudh Subramanian <an...@gmail.com>
wrote:

> Currently I don't see any special handling in the code base for this. We
> have atexit.register which invokes MXInvokeShutdown from python but that
> doesnt work for signals.
>
> Anirudh
>
> On Sun, Sep 22, 2019 at 7:30 PM Chris Olivier <cj...@gmail.com>
> wrote:
>
> > question: how does gluon handle ctrl-c during a “long” imperative
> operation
> > where the GLI hasn’t been released yet? is it supposed to be caught in
> c++
> > or python or no special handling for it at the moment?
> >
>

Re: mxnet ctrl-c

Posted by Anirudh Subramanian <an...@gmail.com>.
Currently I don't see any special handling in the code base for this. We
have atexit.register which invokes MXInvokeShutdown from python but that
doesnt work for signals.

Anirudh

On Sun, Sep 22, 2019 at 7:30 PM Chris Olivier <cj...@gmail.com> wrote:

> question: how does gluon handle ctrl-c during a “long” imperative operation
> where the GLI hasn’t been released yet? is it supposed to be caught in c++
> or python or no special handling for it at the moment?
>