PyMCModel.compile_fn#

PyMCModel.compile_fn(outs, *, inputs=None, mode=None, point_fn=True, **kwargs)#

Compiles an PyTensor function

Parameters:
  • outs (Variable or sequence of Variables) – PyTensor variable or iterable of PyTensor variables.

  • inputs (sequence of Variables, optional) – PyTensor input variables, defaults to pytensorf.inputvars(outs).

  • mode – PyTensor compilation mode, default=None.

  • point_fn (bool) – Whether to wrap the compiled function in a PointFunc, which takes a Point dictionary with model variable names and values as input.

Return type:

Compiled PyTensor function