Skip to content

Commit 86fe4c2

Browse files
frozenbugsUbuntu
and
Ubuntu
authored
Remove datapipe from dgl dependency. (#7667)
Co-authored-by: Ubuntu <[email protected]>
1 parent c490fd0 commit 86fe4c2

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

docker/install/conda_env/torch_cpu_pip.txt

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ requests[security]==2.28
1818
scikit-learn
1919
scipy
2020
torch==2.3.0+cpu
21-
torchdata
2221
torcheval
2322
torchmetrics
2423
torch_geometric

docker/install/conda_env/torch_gpu_pip.txt

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ requests[security]==2.28
1616
scikit-learn
1717
scipy
1818
torch==2.3.0+cu121
19-
torchdata
2019
torcheval
2120
torchmetrics
2221
torch_geometric

docs/source/guide/minibatch-parallelism.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ generate a minibatch, including:
2424
dataloader = gb.DataLoader(datapipe)
2525
2626
All these stages are implemented in separate
27-
`IterableDataPipe <https://pytorch.org/data/main/torchdata.datapipes.iter.html>`__
27+
`IterableDataPipe <https://pytorch.org/data/0.7/torchdata.datapipes.iter.html>`__
2828
and stacked together with `PyTorch DataLoader <https://pytorch.org/docs/stable/data
2929
.html#torch.utils.data.DataLoader>`__.
3030
This design allows us to easily customize the data loading process by
@@ -44,7 +44,7 @@ data movement overheads between processes.
4444

4545
What's more, in order to overlap the data movement and model computation, we
4646
wrap data pipes before ``copy_to`` with
47-
`torchdata.datapipes.iter.Perfetcher <https://pytorch.org/data/main/generated/
47+
`torchdata.datapipes.iter.Perfetcher <https://pytorch.org/data/0.7/generated/
4848
torchdata.datapipes.iter.Prefetcher.html>`__
4949
which prefetches elements from previous data pipes and puts them into a buffer.
5050
Such prefetching is totally transparent to users and requires no extra code. It

python/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,11 @@ def get_lib_file_path(lib_name, backend=""):
226226
"requests>=2.19.0",
227227
"tqdm",
228228
"psutil>=5.8.0",
229-
"torchdata>=0.5.0",
230229
"pandas",
231230
"packaging",
232231
"pyyaml",
233232
"pydantic>=2.0",
234233
]
235-
if "DGLBACKEND" in os.environ and os.environ["DGLBACKEND"] != "pytorch":
236-
install_requires.pop(install_requires.index("torchdata>=0.5.0"))
237234

238235
setup(
239236
name="dgl" + os.getenv("DGL_PACKAGE_SUFFIX", ""),

script/dgl_dev.yml.template

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ dependencies:
3131
- scikit-learn
3232
- scipy
3333
- torch==__TORCH_VERSION__
34-
- torchdata>=0.5.0
3534
- torcheval
3635
- torchmetrics
3736
- torch_geometric

tests/lint/pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function-naming-style=snake_case
213213
# op - operators
214214
# ty - type
215215
# A, B, C, W - for tensor operators like matmul
216-
# dp - DataPipes (see https://pytorch.org/data/main/torchdata.datapipes.iter.html)
216+
# dp - DataPipes (see https://pytorch.org/data/0.7/torchdata.datapipes.iter.html)
217217
# it - iterators
218218
good-names=f,i,j,k,u,v,e,n,m,w,x,y,z,s,d,t,r,g,G,hg,sg,fn,ex,Run,_,us,vs,gs,es,op,ty,A,B,C,W,a,b,N,D1,D2,R,dp,it
219219

0 commit comments

Comments
 (0)