aeppl.utils.rvs_to_value_vars#

aeppl.utils.rvs_to_value_vars(graphs, initial_replacements=None, **kwargs)[source]#

Replace random variables in graphs with their value variables.

This will not recompute test values in the resulting graphs.

Parameters
  • graphs (Iterable[TensorVariable]) – The graphs in which to perform the replacements.

  • initial_replacements (Optional[Dict[TensorVariable, TensorVariable]]) – A dict containing the initial replacements to be made.

Return type

Tuple[TensorVariable, Dict[TensorVariable, TensorVariable]]