Skip to content

Commit

Permalink
change default
Browse files Browse the repository at this point in the history
  • Loading branch information
jalencato committed Dec 12, 2023
1 parent bc0856d commit a609bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/graphstorm/run/gsgnn_np/gsgnn_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""

import os
from dgl.distributed.constants import DEFAULT_NTYPE

import graphstorm as gs
from graphstorm.config import get_argument_parser
Expand Down Expand Up @@ -74,7 +75,7 @@ def main(config_args):
label_field=config.label_field,
lm_feat_ntypes=get_lm_ntypes(config.node_lm_configs))
if config.is_homo:
assert train_data.g.ntypes == ["_N"], "It is required to be a homogeneous graph " \
assert train_data.g.ntypes == [DEFAULT_NTYPE], "It is required to be a homogeneous graph " \
"when not providing target_ntype on node task"
model = gs.create_builtin_node_gnn_model(train_data.g, config, train_task=True)

Expand Down

0 comments on commit a609bad

Please sign in to comment.