Change the way to enable the optimization from a theano flags to a registered, but disabled opt.