pymc.model.core.compile_fn#

pymc.model.core.compile_fn(outs, *, inputs=None, mode=None, point_fn=True, model=None, **kwargs)[source]#

Compiles an PyTensor function

Parameters:
outs

PyTensor variable or iterable of PyTensor variables.

inputs

PyTensor input variables, defaults to pytensorf.inputvars(outs).

mode

PyTensor compilation mode, default=None.

point_fnbool

Whether to wrap the compiled function in a PointFunc, which takes a Point dictionary with model variable names and values as input.

modelModel, optional

Current model on stack.

Returns:
Compiled PyTensor function