https://github.com/GPflow/GPflow
Raw File
Tip revision: 7fd2fee4d8b56eee399f71ffb3017626e3f01a4e authored by vdutor on 02 October 2018, 19:21:24 UTC
Merge branch 'develop' of https://github.com/GPflow/GPflow into vincent/shared-mixed-mok
Tip revision: 7fd2fee
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