Errors

exception metatensor.models.utils.errors.ArchitectureError(exception)[source]

Bases: Exception

Exception raised for errors originating from architectures

This exception should be raised when an error occurs within an architecture’s operation, indicating that the problem is not directly related to the metatensor-models infrastructure but rather to the specific architecture being used.

Parameters:

exception (The exception message includes the message of the original exception, followed by a note emphasizing that the error likely originates from an architecture.) – The original exception that was caught, which led to raising this custom exception.