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

can we just use update_location_indices to initiate active_sites_map #12

Closed
978326187 opened this issue Nov 2, 2020 · 4 comments
Closed

Comments

@978326187
Copy link

active_sites_map[update_location_indices] = Sites.ACTIVE_SITE.value

active_sites_map = torch.squeeze((torch.sum(feature_map**2, dim=-1) != 0).float()).to(self.device)

i think the cases in line 65 is included in line 67.

@MessikommerNico
Copy link
Contributor

Active site are defined as non-zero sites in the input. Later through the network, active site can become zero without being deactivated.
The line at 67 catches the cases, in which active sites became zero through the network update (which happens a lot due to ReLU).

@978326187
Copy link
Author

does that mean variable update_location_indices doesn't include non-zero sites in the input ?

@MessikommerNico
Copy link
Contributor

update_location_indices includes non-zero sites. But it only considers the sites, which did change from one timestep to the other. Hence, both lines are necessary to get the active site map of the whole activation map

@978326187
Copy link
Author

got it ,thanks very much~

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

2 participants