from aesara.configparser import change_flags
aesara.config.floatX = floatX
elif backend == "theano-pymc":
import theano
import theano.tensor as tt
import theano.sparse as ts
from theano.tensor import slinalg
from theano.ifelse import ifelse
from theano.graph.basic import Apply, Node
from theano.graph.op import ExternalCOp as COp
from theano.graph.op import Op
from theano.graph.params_type import Params, ParamsType
from theano.graph.fg import MissingInputError
from theano.configparser import change_flags
tt.config.floatX = floatX
elif backend == "theano":
import theano
import theano.tensor as tt
import theano.sparse as ts
from theano.tensor import slinalg
from theano.ifelse import ifelse
from theano.gof.graph import Apply, Node
from theano.gof.op import COp, Op
from theano.gof.params_type import Params, ParamsType
from theano.gof.fg import MissingInputError
try:
from theano.configparser import change_flags
except:
change_flags = theano.config.change_flags
tt.config.floatX = floatX
else:
raise ImportError(
"The `starry` package requires either `theano`, `theano-pymc`, or `aesara`."
)
def evaluator(**kwargs):