pymc.model.core.Model.profile#
- Model.profile(outs, *, n=1000, point=None, profile=True, **compile_fn_kwargs)[source]#
Compile and profile a PyTensor function which returns
outsand takes values of model vars as a dict as an argument.- Parameters:
- outs
PyTensorvariableor iterable ofPyTensorvariables - n
int, default 1000 Number of iterations to run
- point
Point Point to pass to the function
- profile
TrueorProfileStats - compile_fn_kwargs
Compilation kwargs for
pymc.model.core.Model.compile_fn()
- outs
- Returns:
pytensor.compile.profiling.ProfileStatsUse .summary() to print stats.