Git Product home page Git Product logo

Comments (1)

joyalbin avatar joyalbin commented on September 9, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.