Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix pyg remote backend ut #147

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions graphlearn_torch/python/distributed/dist_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import warnings

import torch
from graphscope.learning.graphlearn_torch.partition.base import PartitionBook
from ..partition import PartitionBook

from ..channel import ShmChannel, QueueTimeoutError
from ..sampler import NodeSamplerInput, EdgeSamplerInput, SamplingConfig, RemoteSamplerInput
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_node_partition_id(self, node_type, index):

def get_node_feature(self, node_type, index):
feature = self.dataset.get_node_feature(node_type)
return feature[index]
return feature[index].cpu()

def get_tensor_size(self, node_type):
feature = self.dataset.get_node_feature(node_type)
Expand Down
Loading