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

prefect tree traversal w/o reshapes #306

Closed
wants to merge 2 commits into from

Conversation

scnakandala
Copy link
Contributor

No description provided.

prev_indices = factor * prev_indices + torch.ge(features, torch.index_select(biases, 0, prev_indices)).long()

output = torch.index_select(self.leaf_nodes, 0, prev_indices).view(-1, self.num_trees, self.n_classes)
# gather_indices = torch.index_select(nodes, 0, prev_indices).view(-1, self.num_trees)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add some comments about the things you left commented out? (else delete it if you think it will not be used again?)
Thanks!

@interesaaat
Copy link
Collaborator

Let me make this PR a draft. We are experimenting with writing PerfectTreeTraversal in a way that TVM can optimize it.

@ksaur
Copy link
Contributor

ksaur commented Sep 23, 2020

Ah ok, that makes a lot more sense! Thanks for the context :)

And thanks @scnakandala and TVM friends for the continued contributions!! :-D

@interesaaat interesaaat mentioned this pull request Sep 23, 2020
@interesaaat interesaaat marked this pull request as draft September 26, 2020 00:10
@ksaur ksaur closed this Nov 3, 2020
@ksaur ksaur deleted the branch microsoft:mainterl/tvm November 3, 2020 21:21
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.

3 participants