Skip to content

Commit

Permalink
update to default
Browse files Browse the repository at this point in the history
  • Loading branch information
jalencato committed Dec 12, 2023
1 parent a02b41e commit bc0856d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/graphstorm/config/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import yaml
import torch as th
import torch.nn.functional as F
from dgl.distributed.constants import DEFAULT_NTYPE, DEFAULT_ETYPE

from .config import BUILTIN_GNN_ENCODER
from .config import BUILTIN_ENCODER
Expand Down Expand Up @@ -149,7 +150,6 @@ def __init__(self, cmd_args):
# Override class attributes using command-line arguments
self.override_arguments(cmd_args)
self.local_rank = cmd_args.local_rank
self.is_homo = False

logging.debug(str(configuration))
cmd_args_dict = cmd_args.__dict__
Expand Down Expand Up @@ -1577,8 +1577,7 @@ def target_ntype(self):
if hasattr(self, "_target_ntype"):
return self._target_ntype
else:
self.is_homo = True
return "_N"
return DEFAULT_NTYPE

@property
def eval_target_ntype(self):
Expand Down

0 comments on commit bc0856d

Please sign in to comment.