Unify the error code

Open
#690 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

No files, tests, or entry points are identified. Start by locating the existing C++ error handling for the listed device, memory, parameter, shape, and dtype cases; done requires an agreed error-code list and consistent use of those codes when raising the errors.

Written by the indexing model from the issue text.

Description

enhancement

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
Dominant language
C++
Stars
3.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/singa

All issues in apache/singa

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.