gpflow.models.util#

Functions#

gpflow.models.util.data_input_to_tensor#

gpflow.models.util.data_input_to_tensor(structure)[source]#

Converts non-tensor elements of a structure to TensorFlow tensors retaining the structure itself.

The function doesn’t keep original element’s dtype and forcefully converts them to GPflow’s default float type.

Parameters

structure (Any) –

Return type

Any

gpflow.models.util.inducingpoint_wrapper#

gpflow.models.util.inducingpoint_wrapper(inducing_variable)[source]#

This wrapper allows transparently passing either an InducingVariables object or an array specifying InducingPoints positions.

Parameters

inducing_variable (Union[InducingVariables, Tensor, ndarray[Any, Any]]) –

Return type

InducingVariables