Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity][Frontend][NN] Op print_ #15604

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Conversation

LeshengJin
Copy link
Contributor

This pr introduces op.print_, which prints runtime tensor value to the screen in one-line code.

Example:

class Model(Module):
    def test(self, x: Tensor):
        z = op.add(x, x)
        op.print_(z) # In the runtime, the value of z would be printed to screen.
        return x

cc: @junrushao @cyx-6 @jwfromm

@tvm-bot
Copy link
Collaborator

tvm-bot commented Aug 22, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff!

@junrushao
Copy link
Member

Waiting for the CI to pass

@quic-sanirudh quic-sanirudh merged commit 71cdd46 into apache:unity Aug 24, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants