Comments (11)
so why do we want to catch the assertion error?
from nnsmith.
have we fixed this issue?
from nnsmith.
@lazycal You mean we shall replace all internal assertion exception into some kind of customized one, right?
from nnsmith.
yes
from nnsmith.
OK, let's use NNSmithInternalError
. I will update my parts and send a PR soon.
from nnsmith.
@lazycal I forgot to make a PR so could manually take a look at 4fe4140 to see if that is what you expected?
from nnsmith.
Should look better now. Use SanityCheck.$FUNC()
to do fatal check (i.e., internal errors). Use ConstraintCheck.$FUNC()
to assert some constraint properties which can be expectedly caught if not sat.
Please consider closing this issue if nothing else.
from nnsmith.
Thanks. This works. I accept this commit.
One question for curiosity: what I initially wanted is much simpler. That is, we only create a new type of error ConstraintError
but still use python's native AssertionError
as NNSmithInternalError
. I don't see any reason against it?
from nnsmith.
Because we have no idea if any other standard lib or 3rd-party lib will use AssertionError to mess things up. So it is always good to distinguish the Exception type when considering catching it as any sort of hints. @lazycal
from nnsmith.
Do you mean you want to ignore 3rd-party's assertionerror?
from nnsmith.
Oh, I see you mean internal error. All errors except ConstraintError
should cause our attention. In this case, it is OK to use AssertionError
. I use NNSmithInternalError
just to make things consistent (it has been used elsewhere before).
from nnsmith.
Related Issues (20)
- [Tracking] Make Python >= 3.8 mandatory
- 💡 [Dynamic Graph] - Does nnsmith support dynamic graphs? HOT 3
- 💡 [REQUEST] TF Coverage Tutorial and Script
- TF Coverage Scripts and Tutorial HOT 1
- [Dev] `hydra` -> `click`
- [Question] Customize the number of input/output variables in generated graphs HOT 9
- 💡 [REQUEST] - Tutorial of adding a new operator for GIR HOT 4
- 🐛 [BUG] - <`ONNXModelCPU_tvm_0.9.0_cpu.yaml` file was empty, can't get opset properly properly> HOT 11
- Render seems to not work HOT 6
- 🐛 [BUG] - There is a problem with relative import in `fuzz.py` HOT 2
- Some questions about the replication of the experiment HOT 6
- Problems encountered while compiling the onnx model HOT 4
- [Help wanted] How to get the shape of the output tensor of a operator HOT 5
- [Help wanted] How to get the result of executing model_exec.py? HOT 7
- [User Question] integer type annotation in TVM HOT 2
- 🐛 [BUG] - <An error occurred when loading the onnx model generated by nnsmith using tvm.delay.> HOT 1
- [Help Wanted] Problems encountered when converting the onnx model to tvm.relay HOT 3
- [Help Wanted] How to only generate sequential models HOT 2
- Help Wanted - How does one generate minimum code examples from NNSmith bug reports HOT 3
- Instruction of TVM COV HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nnsmith.