Revision d3a0a8e9fe84af7ee3ebbc613ca9ca59b2ee05a2 authored by Artem Artemev on 19 February 2019, 16:56:03 UTC, committed by Artem Artemev on 19 February 2019, 16:56:03 UTC
1 parent 0dec75e
Raw File
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