https://github.com/GPflow/GPflow
Revision 62132f899c647bdcb6f0726e9ef9e3161dcd679a authored by Artem Artemev on 24 November 2018, 12:05:14 UTC, committed by Artem Artemev on 24 November 2018, 12:05:14 UTC
1 parent 6b4a3ab
Raw File
Tip revision: 62132f899c647bdcb6f0726e9ef9e3161dcd679a authored by Artem Artemev on 24 November 2018, 12:05:14 UTC
Print travis information
Tip revision: 62132f8
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