Created by: chenwhql
Why skip dynamic graph check:
- If the input type / dtype of a layer is wrong, it will be reported directly on that line. User can easily print the relevant information on which line. It is easier to debug, so there is no need to check in dynamic graph mode.
- Performance considerations. Because these checks are executed at each step in dynamic graph mode, it will bring a heavy performance burden.