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

Details for the code. #19

Open
yesxiaoyu opened this issue Apr 12, 2019 · 0 comments
Open

Details for the code. #19

yesxiaoyu opened this issue Apr 12, 2019 · 0 comments

Comments

@yesxiaoyu
Copy link

Hello, this is really a nice work, and I just begin to transfer the idea to another task. But I don't really understand the code in my_layers->Average->call->K.sum(x, axis=-2) / K.sum(mask, axis=-2). I just know this class is a layer to compute ys, and the function is to average the weight, and I just find the source code in tensorflow_backend->sum, can't konw axis ues in [-rank(x), rank(x)), why axis=-2. By the way, I'm confused by the mask. Could you please tell me some details to raised me up, thank you.

@yesxiaoyu yesxiaoyu reopened this Apr 18, 2019
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