Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
92db4bd5
Unverified
Commit
92db4bd5
authored
Jan 28, 2022
by
Quan (Andy) Gan
Committed by
GitHub
Jan 28, 2022
Browse files
fix (#3700)
parent
da877df2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
docker/Dockerfile.ci_lint
docker/Dockerfile.ci_lint
+4
-2
python/dgl/distributed/graph_partition_book.py
python/dgl/distributed/graph_partition_book.py
+2
-2
No files found.
docker/Dockerfile.ci_lint
View file @
92db4bd5
# CI docker for lint
# Adapted from github.com/dmlc/tvm/docker/Dockerfile.ci_lint
FROM ubuntu:16.04
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh
...
...
@@ -11,4 +13,4 @@ RUN bash /install/ubuntu_install_python.sh
RUN apt-get install -y doxygen graphviz
RUN pip3 install cpplint==1.3.0 pylint==2.
3
.0 mypy
RUN pip3 install cpplint==1.3.0 pylint==2.
7
.0 mypy
python/dgl/distributed/graph_partition_book.py
View file @
92db4bd5
...
...
@@ -661,12 +661,12 @@ class RangePartitionBook(GraphPartitionBook):
for
ntype
in
ntypes
:
ntype_id
=
ntypes
[
ntype
]
self
.
_ntypes
[
ntype_id
]
=
ntype
assert
all
(
[
ntype
is
not
None
for
ntype
in
self
.
_ntypes
]
),
\
assert
all
(
ntype
is
not
None
for
ntype
in
self
.
_ntypes
),
\
"The node types have invalid IDs."
for
etype
in
etypes
:
etype_id
=
etypes
[
etype
]
self
.
_etypes
[
etype_id
]
=
etype
assert
all
(
[
etype
is
not
None
for
etype
in
self
.
_etypes
]
),
\
assert
all
(
etype
is
not
None
for
etype
in
self
.
_etypes
),
\
"The edge types have invalid IDs."
# This stores the node ID ranges for each node type in each partition.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment