TensorFlow 2.0 RC is available Learn more

tfp.edward2.interceptable

Decorator that wraps func so that its execution is intercepted.

tfp.edward2.interceptable(func)

Defined in python/edward2/interceptor.py.

The wrapper passes func to the interceptor for the current thread.

If there is no next interceptor, we perform an "immediate" call to func. That is, func terminates without forwarding its execution to another interceptor.

Args:

  • func: Function to wrap.

Returns:

The decorated function.