Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
35e4909e
Unverified
Commit
35e4909e
authored
Aug 22, 2019
by
Scott Cyphers
Committed by
GitHub
Aug 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into aslepko/ci
parents
54c25d9f
ab1e9aa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
43 deletions
+43
-43
element_type.cpp
src/ngraph/type/element_type.cpp
+28
-28
element_type.hpp
src/ngraph/type/element_type.hpp
+15
-15
No files found.
src/ngraph/type/element_type.cpp
View file @
35e4909e
...
...
@@ -157,74 +157,74 @@ namespace ngraph
namespace
element
{
template
<>
const
Type
&
from
<
char
>
()
Type
from
<
char
>
()
{
return
elemen
t
::
boolean
;
return
Type_
t
::
boolean
;
}
template
<>
const
Type
&
from
<
bool
>
()
Type
from
<
bool
>
()
{
return
boolean
;
return
Type_t
::
boolean
;
}
template
<>
const
Type
&
from
<
ngraph
::
float16
>
()
Type
from
<
ngraph
::
float16
>
()
{
return
f16
;
return
Type_t
::
f16
;
}
template
<>
const
Type
&
from
<
float
>
()
Type
from
<
float
>
()
{
return
f32
;
return
Type_t
::
f32
;
}
template
<>
const
Type
&
from
<
double
>
()
Type
from
<
double
>
()
{
return
f64
;
return
Type_t
::
f64
;
}
template
<>
const
Type
&
from
<
int8_t
>
()
Type
from
<
int8_t
>
()
{
return
i8
;
return
Type_t
::
i8
;
}
template
<>
const
Type
&
from
<
int16_t
>
()
Type
from
<
int16_t
>
()
{
return
i16
;
return
Type_t
::
i16
;
}
template
<>
const
Type
&
from
<
int32_t
>
()
Type
from
<
int32_t
>
()
{
return
i32
;
return
Type_t
::
i32
;
}
template
<>
const
Type
&
from
<
int64_t
>
()
Type
from
<
int64_t
>
()
{
return
i64
;
return
Type_t
::
i64
;
}
template
<>
const
Type
&
from
<
uint8_t
>
()
Type
from
<
uint8_t
>
()
{
return
u8
;
return
Type_t
::
u8
;
}
template
<>
const
Type
&
from
<
uint16_t
>
()
Type
from
<
uint16_t
>
()
{
return
u16
;
return
Type_t
::
u16
;
}
template
<>
const
Type
&
from
<
uint32_t
>
()
Type
from
<
uint32_t
>
()
{
return
u32
;
return
Type_t
::
u32
;
}
template
<>
const
Type
&
from
<
uint64_t
>
()
Type
from
<
uint64_t
>
()
{
return
u64
;
return
Type_t
::
u64
;
}
template
<>
const
Type
&
from
<
ngraph
::
bfloat16
>
()
Type
from
<
ngraph
::
bfloat16
>
()
{
return
bf16
;
return
Type_t
::
bf16
;
}
}
}
...
...
src/ngraph/type/element_type.hpp
View file @
35e4909e
...
...
@@ -145,38 +145,38 @@ namespace ngraph
extern
NGRAPH_API
const
Type
u64
;
template
<
typename
T
>
const
Type
&
from
()
Type
from
()
{
throw
std
::
invalid_argument
(
"Unknown type"
);
}
template
<>
const
Type
&
from
<
char
>
();
Type
from
<
char
>
();
template
<>
const
Type
&
from
<
bool
>
();
Type
from
<
bool
>
();
template
<>
const
Type
&
from
<
float
>
();
Type
from
<
float
>
();
template
<>
const
Type
&
from
<
double
>
();
Type
from
<
double
>
();
template
<>
const
Type
&
from
<
int8_t
>
();
Type
from
<
int8_t
>
();
template
<>
const
Type
&
from
<
int16_t
>
();
Type
from
<
int16_t
>
();
template
<>
const
Type
&
from
<
int32_t
>
();
Type
from
<
int32_t
>
();
template
<>
const
Type
&
from
<
int64_t
>
();
Type
from
<
int64_t
>
();
template
<>
const
Type
&
from
<
uint8_t
>
();
Type
from
<
uint8_t
>
();
template
<>
const
Type
&
from
<
uint16_t
>
();
Type
from
<
uint16_t
>
();
template
<>
const
Type
&
from
<
uint32_t
>
();
Type
from
<
uint32_t
>
();
template
<>
const
Type
&
from
<
uint64_t
>
();
Type
from
<
uint64_t
>
();
template
<>
const
Type
&
from
<
ngraph
::
bfloat16
>
();
Type
from
<
ngraph
::
bfloat16
>
();
template
<>
const
Type
&
from
<
ngraph
::
float16
>
();
Type
from
<
ngraph
::
float16
>
();
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
ngraph
::
element
::
Type
&
obj
);
}
...
...
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