Skip to content

Commit 0350a8b

Browse files
Error for resource already loaded
Differential Revision: D93511023 Pull Request resolved: pytorch#17593
1 parent 3880914 commit 0350a8b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎runtime/core/error.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ enum class Error : error_code_t {
4444
/// Status indicating there are no more steps of execution to run
4545
EndOfMethod = 0x03,
4646

47+
/// Status indicating a resource has already been loaded.
48+
AlreadyLoaded = 0x04,
49+
4750
/*
4851
* Logical errors.
4952
*/
@@ -114,6 +117,8 @@ constexpr const char* to_string(const Error error) {
114117
return "Error::InvalidState";
115118
case Error::EndOfMethod:
116119
return "Error::EndOfMethod";
120+
case Error::AlreadyLoaded:
121+
return "Error::AlreadyLoaded";
117122
case Error::NotSupported:
118123
return "Error::NotSupported";
119124
case Error::NotImplemented:

0 commit comments

Comments
 (0)