call_accepts_kwarg#

bayesflow.utils.keras_utils.call_accepts_kwarg(call, key: str) bool[source]#

Return whether a callable accepts a keyword argument.

Parameters:
callCallable

Callable to inspect.

keystr

Keyword argument name.

Returns:
bool

True if call explicitly accepts key or has **kwargs.