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

Problem about the function torch.index_select(input, dim, index, out=None) #1

Open
pcshih opened this issue Jul 27, 2019 · 4 comments

Comments

@pcshih
Copy link
Owner

pcshih commented Jul 27, 2019

Is this function diff. ?

@Tony-Y
Copy link

Tony-Y commented Jul 27, 2019

It is not diff. wrt index.

@pcshih
Copy link
Owner Author

pcshih commented Jul 27, 2019

"By the way,

summary = x_select+h_select
summary = self.relu_summary(summary)

summary should resemble x_select, but when summary equals to x_select, h_select is vanished."

I just follow FCSN to do the above implementation.

Thank you very much, Tony-Y.

@pcshih
Copy link
Owner Author

pcshih commented Jul 27, 2019

How can I implement "If Score(key) > Score(not) then it is a key frame."

I can only think of "max" implementation to get the index but now it's non-differentiable.

@Tony-Y
Copy link

Tony-Y commented Jul 27, 2019

If you really want back propagation though index_mask, you could use sigmoid function as the following:

index_mask = sigmoid( Score(key) -Score(not) )

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