Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyxclack committed Jul 15, 2022
1 parent 11425ee commit 3be659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federatedscope/core/auxiliaries/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_shape_from_data(data, model_config, backend='torch'):
num_label = data['num_label'] if 'num_label' in data else None
num_edge_features = data[
'num_edge_features'] if model_config.type == 'mpnn' else None
return (data.x.shape, num_label, num_edge_features)
return (data['train'].x.shape, num_label, num_edge_features)

if isinstance(data, dict):
keys = list(data.keys())
Expand Down

0 comments on commit 3be659f

Please sign in to comment.