Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 3ee2838

Browse files
lwfacebook-github-bot
authored andcommitted
Make rpc and tensorlist part of PBG
Reviewed By: adamlerer Differential Revision: D17742505 fbshipit-source-id: 6791a0a57127989f5af3ef0b63cee7b05f1b111f
1 parent 5d43050 commit 3ee2838

14 files changed

Lines changed: 8 additions & 31 deletions

test/test_entitylist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from unittest import TestCase, main
1111

1212
import torch
13-
from torch_extensions.tensorlist.tensorlist import TensorList
1413

1514
from torchbiggraph.entitylist import EntityList
15+
from torchbiggraph.tensorlist import TensorList
1616

1717

1818
def tensor_list_from_lists(lists: Sequence[Sequence[int]]) -> TensorList:

test/test_graph_storages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import h5py
1313
import numpy as np
1414
import torch
15-
from torch_extensions.tensorlist.tensorlist import TensorList
1615

1716
from torchbiggraph.graph_storages import FileEdgeAppender
17+
from torchbiggraph.tensorlist import TensorList
1818

1919

2020
class TestFileEdgeAppender(TestCase):

test/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from unittest import TestCase, main
1515

1616
import torch
17-
from torch_extensions.tensorlist.tensorlist import TensorList
1817

1918
from torchbiggraph.entitylist import EntityList
2019
from torchbiggraph.model import (
@@ -39,6 +38,7 @@
3938
TranslationOperator,
4039
match_shape,
4140
)
41+
from torchbiggraph.tensorlist import TensorList
4242

4343

4444
class TensorTestCase(TestCase):

torch_extensions/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

torch_extensions/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

torch_extensions/rpc/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

torch_extensions/tensorlist/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

torchbiggraph/bucket_scheduling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
from abc import ABC, abstractmethod
1212
from typing import Dict, List, NamedTuple, Optional, Set, Tuple
1313

14-
from torch_extensions.rpc.rpc import Client, Server
15-
1614
from torchbiggraph.config import BucketOrder
1715
from torchbiggraph.distributed import Startable
16+
from torchbiggraph.rpc import Client, Server
1817
from torchbiggraph.stats import Stats
1918
from torchbiggraph.types import Bucket, EntityName, Partition, Rank, Side
2019

torchbiggraph/entitylist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from typing import Any, Sequence, Union
1010

1111
import torch
12-
from torch_extensions.tensorlist.tensorlist import TensorList
1312

13+
from torchbiggraph.tensorlist import TensorList
1414
from torchbiggraph.types import LongTensorType
1515

1616

torchbiggraph/graph_storages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
import h5py
1919
import numpy as np
2020
import torch
21-
from torch_extensions.tensorlist.tensorlist import TensorList
2221

2322
from torchbiggraph.edgelist import EdgeList
2423
from torchbiggraph.entitylist import EntityList
2524
from torchbiggraph.plugin import URLPluginRegistry
25+
from torchbiggraph.tensorlist import TensorList
2626
from torchbiggraph.util import CouldNotLoadData
2727

2828

0 commit comments

Comments
 (0)