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

Parametrize attention_normalize_fn (utils.segment_softmax) by default #6

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

sooheon
Copy link
Contributor

@sooheon sooheon commented Jan 12, 2021

Allows for using methods other than softmax

Copy link
Contributor

@jg8610 jg8610 left a comment

Choose a reason for hiding this comment

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

Also looks great! Left some minor nits.

@@ -52,17 +52,22 @@
# (edge features, sender node features, receiver node features, globals) ->
# attention weights
AttentionLogitFn = Callable[
[EdgeFeatures, SenderFeatures, ReceiverFeatures, Globals], ArrayTree]
[EdgeFeatures, SenderFeatures, ReceiverFeatures, Globals], ArrayTree]
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to change this.

jraph/_src/models.py Outdated Show resolved Hide resolved
@jg8610 jg8610 merged commit 4253792 into google-deepmind:master Jan 13, 2021
jg8610 added a commit that referenced this pull request Jan 14, 2021
PiperOrigin-RevId: 351785178
Change-Id: Ic9817b0d4fab2af36229924af54fe049068dbc48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants