gpflow.experimental.check_shapes.shapes#

Code for extracting shapes from object.

Functions#

gpflow.experimental.check_shapes.shapes.get_ndarray_shape#

gpflow.experimental.check_shapes.shapes.get_ndarray_shape(shaped, context)[source]#
Parameters:
Return type:

Optional[Tuple[Optional[int], ...]]

gpflow.experimental.check_shapes.shapes.get_scalar_shape#

gpflow.experimental.check_shapes.shapes.get_scalar_shape(shaped, context)[source]#
Parameters:
Return type:

Optional[Tuple[Optional[int], ...]]

gpflow.experimental.check_shapes.shapes.get_sequence_shape#

gpflow.experimental.check_shapes.shapes.get_sequence_shape(shaped, context)[source]#
Parameters:
Return type:

Optional[Tuple[Optional[int], ...]]

gpflow.experimental.check_shapes.shapes.get_tensorflow_shape#

gpflow.experimental.check_shapes.shapes.get_tensorflow_shape(shaped, context)[source]#
Parameters:
  • shaped (Union[Tensor, Variable, DeferredTensor]) –

  • context (ErrorContext) –

Return type:

Optional[Tuple[Optional[int], ...]]