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
1c00f3a8
Unverified
Commit
1c00f3a8
authored
Oct 02, 2019
by
Da Zheng
Committed by
GitHub
Oct 02, 2019
Browse files
fix compile error on Mac. (#896)
parent
d0eae92e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/graph/sampler.cc
src/graph/sampler.cc
+1
-1
No files found.
src/graph/sampler.cc
View file @
1c00f3a8
...
@@ -977,7 +977,7 @@ IdArray CheckExistence(GraphPtr gptr, IdArray relations,
...
@@ -977,7 +977,7 @@ IdArray CheckExistence(GraphPtr gptr, IdArray relations,
return
exist
;
return
exist
;
}
}
std
::
vector
<
dgl_id_t
>
Global2Local
(
const
std
::
vector
<
dgl_id
_t
>
&
ids
,
std
::
vector
<
dgl_id_t
>
Global2Local
(
const
std
::
vector
<
size
_t
>
&
ids
,
const
std
::
unordered_map
<
dgl_id_t
,
dgl_id_t
>
&
map
)
{
const
std
::
unordered_map
<
dgl_id_t
,
dgl_id_t
>
&
map
)
{
std
::
vector
<
dgl_id_t
>
local_ids
(
ids
.
size
());
std
::
vector
<
dgl_id_t
>
local_ids
(
ids
.
size
());
for
(
size_t
i
=
0
;
i
<
ids
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
ids
.
size
();
i
++
)
{
...
...
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