gpflow.experimental.check_shapes.exceptions#

Exceptions generated by check_shapes.

These rely heavily on the infrastructure in error_contexts.py.

Classes#

gpflow.experimental.check_shapes.exceptions.CheckShapesError#

class gpflow.experimental.check_shapes.exceptions.CheckShapesError(context)[source]#

Bases: Exception

Common super class for check_shapes errors.

Parameters

context (ErrorContext) –

gpflow.experimental.check_shapes.exceptions.DocstringParseError#

class gpflow.experimental.check_shapes.exceptions.DocstringParseError(context)[source]#

Bases: gpflow.experimental.check_shapes.exceptions.CheckShapesError

Error raised if there was an error parsing the shape specification.

Parameters

context (ErrorContext) –

gpflow.experimental.check_shapes.exceptions.NoShapeError#

class gpflow.experimental.check_shapes.exceptions.NoShapeError(context)[source]#

Bases: gpflow.experimental.check_shapes.exceptions.CheckShapesError

Error raised if we are trying to get the shape of an object that does not have a shape.

Parameters

context (ErrorContext) –

gpflow.experimental.check_shapes.exceptions.SpecificationParseError#

class gpflow.experimental.check_shapes.exceptions.SpecificationParseError(context)[source]#

Bases: gpflow.experimental.check_shapes.exceptions.CheckShapesError

Error raised if there was an error parsing the shape specification.

Parameters

context (ErrorContext) –