Source code for deepmd.utils.errors

# SPDX-License-Identifier: LGPL-3.0-or-later
[docs]class GraphTooLargeError(Exception): """The graph is too large, exceeding protobuf's hard limit of 2GB."""
[docs]class GraphWithoutTensorError(Exception): pass
[docs]class OutOfMemoryError(Exception): """This error is caused by out-of-memory (OOM)."""