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
8db11f97
Commit
8db11f97
authored
Nov 21, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused template method
parent
85fb5761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
emitter.hpp
src/ngraph/runtime/cpu/emitter.hpp
+0
-33
No files found.
src/ngraph/runtime/cpu/emitter.hpp
View file @
8db11f97
...
...
@@ -103,39 +103,6 @@ namespace ngraph
std
::
string
emit_vector
(
const
TensorViewInfo
&
,
const
std
::
string
&
name
=
""
);
std
::
string
emit_array1d
(
const
TensorViewInfo
&
,
const
std
::
string
&
name
=
""
);
std
::
string
emit_matrix
(
const
TensorViewInfo
&
,
const
std
::
string
&
name
=
""
);
template
<
typename
T
>
void
EmitParameterizedConstant
(
const
std
::
string
&
type
,
const
ngraph
::
Node
*
n
,
const
std
::
vector
<
T
>&
value
,
const
TensorViewInfo
&
tv
)
{
TU
<<
"// "
<<
n
->
get_name
()
<<
" EmitParameterizedConstant_"
<<
type
<<
"
\n
"
;
if
(
tv
.
get_tensor
().
is_output
())
{
// Special case where constant is stored directly in the output
for
(
size_t
i
=
0
;
i
<
value
.
size
();
i
++
)
{
TU
<<
tv
.
get_tensor
().
get_name
()
<<
"["
<<
i
<<
"] = static_cast<"
<<
type
<<
">("
<<
value
[
i
]
<<
");
\n
"
;
}
}
else
{
TU
<<
"// this should be const but eigen hates const :(
\n
"
;
TU
<<
type
<<
" "
<<
tv
.
get_tensor
().
get_name
()
<<
"[] = {
\n
"
;
for
(
size_t
i
=
0
;
i
<
value
.
size
();
i
++
)
{
if
(
i
!=
0
)
{
TU
<<
",
\n
"
;
}
TU
<<
" "
<<
value
[
i
];
}
TU
<<
"
\n
};"
;
}
TU
<<
"
\n
"
;
}
};
}
}
...
...
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