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
d8433899
Commit
d8433899
authored
Dec 20, 2017
by
Adam Procter
Committed by
Robert Kimball
Dec 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround for gcc limitation (#319)
parent
bcbc4cd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
constant.cpp
src/ngraph/ops/constant.cpp
+17
-6
No files found.
src/ngraph/ops/constant.cpp
View file @
d8433899
...
...
@@ -119,11 +119,22 @@ std::vector<std::string> op::Constant::get_value_strings() const
return
rc
;
}
template
<>
void
op
::
Constant
::
write_to_buffer
<
std
::
string
>
(
const
element
::
Type
&
target_type
,
const
Shape
&
target_shape
,
const
std
::
vector
<
std
::
string
>&
source
,
void
*
target
,
size_t
target_element_count
)
//
// We have to open up namespace blocks here to work around a problem with gcc:
//
// https://stackoverflow.com/questions/25594644/warning-specialization-of-template-in-different-namespace
//
namespace
ngraph
{
namespace
op
{
template
<>
void
Constant
::
write_to_buffer
<
std
::
string
>
(
const
element
::
Type
&
target_type
,
const
Shape
&
target_shape
,
const
std
::
vector
<
std
::
string
>&
source
,
void
*
target
,
size_t
target_element_count
)
{
}
}
}
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