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.ArgumentReferenceError#
- class gpflow.experimental.check_shapes.exceptions.ArgumentReferenceError(context)[source]#
Bases:
CheckShapesError
Error raised if the argument to check the shape of could not be resolved.
- Parameters:
context (
ErrorContext
) –
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:
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:
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.ShapeMismatchError#
- class gpflow.experimental.check_shapes.exceptions.ShapeMismatchError(context)[source]#
Bases:
CheckShapesError
Error raised if a function is called with tensors of the wrong shape.
- Parameters:
context (
ErrorContext
) –
gpflow.experimental.check_shapes.exceptions.SpecificationParseError#
- class gpflow.experimental.check_shapes.exceptions.SpecificationParseError(context)[source]#
Bases:
CheckShapesError
Error raised if there was an error parsing the shape specification.
- Parameters:
context (
ErrorContext
) –
gpflow.experimental.check_shapes.exceptions.VariableTypeError#
- class gpflow.experimental.check_shapes.exceptions.VariableTypeError(context)[source]#
Bases:
CheckShapesError
Error raised if a variable is used both as a rank-1 and a variable-rank variable.
- Parameters:
context (
ErrorContext
) –