https://github.com/GPflow/GPflow
Revision 0dec75ec608fcf6d7b29655df4006f0f5d9a5f83 authored by st-- on 19 February 2019, 16:37:32 UTC, committed by Artem Artemev on 19 February 2019, 16:37:32 UTC
1 parent 649b039
Raw File
Tip revision: 0dec75ec608fcf6d7b29655df4006f0f5d9a5f83 authored by st-- on 19 February 2019, 16:37:32 UTC
Revamp of GPflow documentation and notebooks (#924)
Tip revision: 0dec75e
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