https://github.com/GPflow/GPflow
Raw File
Tip revision: 125846f4872c9ad1c5bd2020ba21d549245a8001 authored by Artem Artemev on 17 June 2019, 22:30:41 UTC
Bump version to fix PyPI package
Tip revision: 125846f
dispatch.py
from multipledispatch import dispatch, Dispatcher
from functools import partial

# By default multipledispatch uses a global namespace in multipledispatch.core.global_namespace
# We define our own GPflow namespace to avoid any conflict which may arise
gpflow_md_namespace = dict()
dispatch = partial(dispatch, namespace=gpflow_md_namespace)

conditional = Dispatcher('conditional')
sample_conditional = Dispatcher('sample_conditional')
back to top