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_shapesthat was applied tofunc.- Return type:
Optional[Callable[[TypeVar(C, bound=Callable[...,Any])],TypeVar(C, bound=Callable[...,Any])]]- Returns:
The
check_shapesthat is wrappingfunc, andNoneif nocheck_shapesis not wrappingfunc.- 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_shapesinfunc, so that we later can tell whichcheck_shapeswas applied to it.- Parameters:
func (
Callable[...,Any]) –check_shapes (
Callable[[TypeVar(C, bound=Callable[...,Any])],TypeVar(C, bound=Callable[...,Any])]) –
- Return type:
None