Comments (1)
Todos:
- Support for step debug(debug step by step over the graph nodes)
- Inject a specific graph node value as numpy array through CLI and re-run the dependent nodes explicitly
- Inject a graph node value from dump file through CLI
Proposed API design:
'tvm.contrib.graph_runtime' extend with two interfaces 'debug_run' and 'inject_value'. 'debug_run' can execute a specific node only if all the inputs are ready.
Stepper will be invoked with 'invoke_stepper' from 'tvm.tools.debug.wrapper.ui_framework' based on the user run option.
'invoke_stepper' in 'tvm.tools.debug.wrapper.ui_wrapper' create 'DebugStepper' class (in tvm.tools.debug.ui.ui_stepper) for Stepper UI and handlers.
'tvm.tools.debug.runtime.debug_runtime' uses tvm.contrib.graph_runtime to create below stepper interfaces:
- step: perform the step by step execution from the current node
- goto: Specify the node to be executed next, step will continue from the this next node
- inject_value: used to inject a node tensor value during the execution
A wrapper interfaces layer will be created in tvm.tools.debug.wrapper.ui_wrapper for the above interfaces.
Based on 'DebugStepper' user events, stepper runtime interfaces will be called through 'tvm.tools.debug.wrapper.ui_wrapper'
from tvmdbg.
Related Issues (1)
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 tvmdbg.