gpflow.experimental.check_shapes.accessors#

Utilities for setting and getting check_shapes

Functions#

gpflow.experimental.check_shapes.accessors.maybe_get_check_shapes#

gpflow.experimental.check_shapes.accessors.maybe_get_check_shapes(func)[source]#

Get the check_shapes that was applied to func.

Return type:

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

Returns:

The check_shapes that is wrapping func, and None if no check_shapes is not wrapping func.

Parameters:

func (Callable[..., Any]) –

gpflow.experimental.check_shapes.accessors.set_check_shapes#

gpflow.experimental.check_shapes.accessors.set_check_shapes(func, check_shapes)[source]#

Store check_shapes in func, so that we later can tell which check_shapes was applied to it.

Parameters:
  • func (Callable[..., Any]) –

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

Return type:

None