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 tofunc
.- Return type:
Optional
[Callable
[[TypeVar
(C
, bound=Callable
[...
,Any
])],TypeVar
(C
, bound=Callable
[...
,Any
])]]- Returns:
The
check_shapes
that is wrappingfunc
, andNone
if nocheck_shapes
is 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_shapes
infunc
, so that we later can tell whichcheck_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