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

Running with hierarchical blocking #1

Open
kentaroy47 opened this issue Oct 19, 2023 · 0 comments
Open

Running with hierarchical blocking #1

kentaroy47 opened this issue Oct 19, 2023 · 0 comments

Comments

@kentaroy47
Copy link

kentaroy47 commented Oct 19, 2023

Nice repo, and I enjoyed reading your paper too.

I was wondering how odd-sized blocking can be handled in this repo, since if the feature size cannot be divided by the blocksize it will not use blocking.

def _type_H_block_size(self, h, w):
        return ((int)(h / self.block_size[0]) if h % self.block_size[0] == 0 else h,
                            (int)(w / self.block_size[1]) if w % self.block_size[1] == 0 else w)

This may become troublesome in the last block of resnet, since the feature size would be 512x7x7

@kentaroy47 kentaroy47 changed the title Fixed blocking and hierarchical blocking Running with hierarchical blocking Oct 19, 2023
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

No branches or pull requests

1 participant