Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Need a debugging utility to dump out intermediate values of Tensor object #15198

Open
apeforest opened this issue Jun 10, 2019 · 4 comments
Open
Labels
Backend Issues related to the backend of MXNet Call for Contribution Feature request

Comments

@apeforest
Copy link
Contributor

Currently, when debugging a MXNet operator, there is no existing utility function to dump out intermediate Tensor and NDArray object.

Developers have to write their own debugging code which is inefficient and error prone.

We need an easy to use C++ debugging utility to help developers debug MXNet operators in backend.

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Feature

@apeforest apeforest added Feature request Call for Contribution Backend Issues related to the backend of MXNet labels Jun 10, 2019
@apeforest apeforest changed the title [Feature] Need a debugging utility to dump out intermediate values of Tensor object Need a debugging utility to dump out intermediate values of Tensor object Jun 10, 2019
@anirudh2290
Copy link
Member

Does set_monitor_callback in executor work for your use case ?

@ptrendx
Copy link
Member

ptrendx commented Jun 11, 2019

Monitor callback is good (although not really documented properly - I had to look at the internals of monitor implementation in Module API to know what the Python function should do to access the NDArray), but it only works for Symbol API, not for Gluon, which makes it really hard to debug backward pass/both passes of hybridized models.

@larroy
Copy link
Contributor

larroy commented Jun 17, 2019

FYI I'm working on this. Ok, to be precise I want to dump the graph in the backward pass, getting value of the tensors would be secondary. How would monitor callback work if there's no executor? @anirudh2290 had the same question in the PR linked here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backend Issues related to the backend of MXNet Call for Contribution Feature request
Projects
None yet
Development

No branches or pull requests

5 participants