gpflow.experimental.check_shapes.decorator#

Decorator for checking the shapes of function using tf Tensors.

Functions#

gpflow.experimental.check_shapes.decorator.null_check_shapes#

gpflow.experimental.check_shapes.decorator.null_check_shapes(func)[source]#

Annotates the given function so that it looks like it has shape checks, but without actually checking anything.

This is necessary not to break @inherit_check_shapes when shape checking is disabled.

Parameters:

func (TypeVar(C, bound= Callable[..., Any])) –

Return type:

TypeVar(C, bound= Callable[..., Any])