PyMCModel.compile_fn#
- PyMCModel.compile_fn(outs, *, inputs=None, mode=None, point_fn=True, **kwargs)#
- Overloads:
self, outs (Variable | Sequence[Variable]), inputs (Sequence[Variable] | None), mode, point_fn (Literal[True]), kwargs → PointFunc
self, outs (Variable | Sequence[Variable]), inputs (Sequence[Variable] | None), mode, point_fn (Literal[False]), kwargs → Function
- Parameters:
- Return type:
PointFunc | Function
Compiles a PyTensor function.
- Parameters:
outs (
Variable|Sequence[Variable]) – PyTensor variable or iterable of PyTensor variables.inputs (
Sequence[Variable] |None) – PyTensor input variables, Required if there is more than one input.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.arguments (Other keyword) – Any other keyword argument is sent to
pymc.pytensorf.compile_pymc().
- Return type:
Compiled PyTensor function