https://github.com/GPflow/GPflow
Raw File
Tip revision: 64a52dd9887ef748ac08579f2f3011d463cddf5a authored by vdutor on 15 February 2019, 10:47:07 UTC
Add unit test
Tip revision: 64a52dd
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