apache / apache/singa

Unify the error code

Open
#690 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

It would be better to have a error code list for debugging.
Then we can raise the errors.

Here are some example errors:

1. device not set or not match for input tensors to an operator
2. memory not allocated for a tensor
3. parameters not created in a layer
4. tensor shape not match
5. tensor dtype not match

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.