Skip to content

Commit

Permalink
Merge pull request #52 from microsoft/feat/types
Browse files Browse the repository at this point in the history
fix(data/maml.py): type mismatch between tf2gnn input signature and data
  • Loading branch information
megstanley authored Dec 8, 2021
2 parents 6997cb3 + a86153e commit 92aa95d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs_mol/data/maml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def maml_batch_finalizer(batch_data: Dict[str, Any]) -> Tuple[Dict[str, Any], Di

batch_features = {
"node_features": fsmol_batch.node_features,
"node_to_graph_map": fsmol_batch.node_to_graph,
"node_to_graph_map": fsmol_batch.node_to_graph.astype(np.int32),
"num_graphs_in_batch": fsmol_batch.num_graphs,
}
for edge_type_idx in range(NUM_EDGE_TYPES):
batch_features[f"adjacency_list_{edge_type_idx}"] = fsmol_batch.adjacency_lists[
edge_type_idx
]
].astype(np.int32)
batch_features[f"edge_features_{edge_type_idx}"] = fsmol_batch.edge_features[edge_type_idx]

batch_labels = {
Expand Down

0 comments on commit 92aa95d

Please sign in to comment.