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
066d290f
Unverified
Commit
066d290f
authored
Mar 05, 2020
by
Jinjing Zhou
Committed by
GitHub
Mar 05, 2020
Browse files
[Fix] Fix build on macos(clang) (#1318)
* fix * data type * fix * fix * fix
parent
e2db7913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/c_api_common.h
src/c_api_common.h
+2
-0
No files found.
src/c_api_common.h
View file @
066d290f
...
...
@@ -14,6 +14,8 @@
#include <algorithm>
#include <vector>
using
dgl
::
runtime
::
operator
<<
;
/*! \brief Check whether two data types are the same.*/
inline
bool
operator
==
(
const
DLDataType
&
ty1
,
const
DLDataType
&
ty2
)
{
return
ty1
.
code
==
ty2
.
code
&&
ty1
.
bits
==
ty2
.
bits
&&
ty1
.
lanes
==
ty2
.
lanes
;
...
...
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