Skip to content

Commit

Permalink
reverting graph_layers
Browse files Browse the repository at this point in the history
  • Loading branch information
pstjohn committed Sep 17, 2021
1 parent eef032d commit b159c13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nfp/layers/graph_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ def __init__(self, units, num_heads, **kwargs):
def build(self, input_shape):
super().build(input_shape)
dense_units = self.units * self.num_heads # N*H
# if self.use_global:
# assert input_shape[-1][-1] == dense_units
self.query_layer = layers.Dense(self.num_heads, name='query')
self.value_layer = layers.Dense(dense_units, name='value')

Expand All @@ -160,7 +158,6 @@ def transpose_scores(self, input_tensor):
def call(self, inputs, mask=None):
if not self.use_global:
atom_state, bond_state, connectivity = inputs
global_state = None
else:
atom_state, bond_state, connectivity, global_state = inputs

Expand Down

0 comments on commit b159c13

Please sign in to comment.