Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarghi-nv committed Aug 7, 2024
1 parent 41a4c39 commit 29be85c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
6 changes: 1 addition & 5 deletions python/cugraph-dgl/cugraph_dgl/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ def _graph(
if prob_attr is None
else cupy.asarray(self.edata[prob_attr][edgelist_dict["eid"].cpu()])
)
weights = cupy.array([1,1,2,0,0,0,2,1], dtype='float32')
print(weights)
weights = cupy.array([1, 1, 2, 0, 0, 0, 2, 1], dtype="float32")

if self.is_multi_gpu:
rank = torch.distributed.get_rank()
Expand Down Expand Up @@ -618,9 +617,6 @@ def _get_n_emb(
)

try:
print(
u,
)
return self.__ndata_storage[ntype, emb_name].fetch(
_cast_to_torch_tensor(u), "cuda"
)
Expand Down
14 changes: 5 additions & 9 deletions python/cugraph/cugraph/gnn/data_loading/dist_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,11 @@ def sample_from_nodes(
: len(current_seeds)
]

print(current_seeds, current_batches, flush=True,)
print(
current_seeds,
current_batches,
flush=True,
)
minibatch_dict = self.sample_batches(
seeds=current_seeds,
batch_ids=current_batches,
Expand Down Expand Up @@ -768,14 +772,6 @@ def sample_batches(
else:
label_offsets = None

print(
cupy.asarray(seeds),
cupy.asarray(batch_ids),
cupy.asarray(label_list),
cupy.asarray(label_to_output_comm_rank),
flush=True,
)

sampling_results_dict = self.__func(
self._resource_handle,
self._graph,
Expand Down

0 comments on commit 29be85c

Please sign in to comment.