Skip to content

Commit

Permalink
remove unused device fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jul 18, 2024
1 parent 3255817 commit 7fcc4b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions python/dgl/graphbolt/feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ def read_async(self, ids: torch.Tensor = None):

def read_async_num_stages(self):
"""The number of stages of the read_async operation."""
return 1

@property
def device(self):
"""The device this feature is stored at."""
raise NotImplementedError

def size(self):
Expand Down
8 changes: 0 additions & 8 deletions python/dgl/graphbolt/impl/torch_based_feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ def size(self):
"""
return self._tensor.size()[1:]

@property
def device(self):
return self._tensor.device

def update(self, value: torch.Tensor, ids: torch.Tensor = None):
"""Update the feature store.
Expand Down Expand Up @@ -411,10 +407,6 @@ def size(self):
"""
return self._tensor.size()[1:]

@property
def device(self):
return self._tensor.device

def update(self, value: torch.Tensor, ids: torch.Tensor = None):
"""Disk based feature does not support update for now."""
raise NotImplementedError
Expand Down

0 comments on commit 7fcc4b4

Please sign in to comment.