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
62342c4e
Unverified
Commit
62342c4e
authored
Feb 14, 2018
by
Jai Menon
Committed by
GitHub
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPU: Restore use of the single-specification helper macro EMITTER_DECL (#495)
in emitter function definitions
parent
7cf242d3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
cpu_emitter.cpp
src/ngraph/runtime/cpu/cpu_emitter.cpp
+0
-0
cpu_emitter.hpp
src/ngraph/runtime/cpu/cpu_emitter.hpp
+3
-2
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+2
-2
cpu_external_function.hpp
src/ngraph/runtime/cpu/cpu_external_function.hpp
+2
-1
No files found.
src/ngraph/runtime/cpu/cpu_emitter.cpp
View file @
62342c4e
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/cpu/cpu_emitter.hpp
View file @
62342c4e
...
...
@@ -25,8 +25,9 @@
#include "ngraph/runtime/cpu/cpu_tensor_view_wrapper.hpp"
#define EMITTER_DECL(E) \
E(codegen::CodeWriter& writer, \
const ngraph::Node* n, \
E(ngraph::runtime::cpu::CPU_ExternalFunction* external_function, \
codegen::CodeWriter& writer, \
const ngraph::Node* node, \
const std::vector<ngraph::runtime::cpu::TensorViewWrapper>& args, \
const std::vector<ngraph::runtime::cpu::TensorViewWrapper>& out)
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
62342c4e
...
...
@@ -677,7 +677,7 @@ using namespace ngraph::runtime;
}
if
(
func_name
.
empty
())
{
handler
->
second
(
writer
,
node
.
get
(),
in
,
out
);
handler
->
second
(
this
,
writer
,
node
.
get
(),
in
,
out
);
}
else
{
...
...
@@ -952,7 +952,7 @@ string runtime::cpu::CPU_ExternalFunction::emit_op_as_function(const Node& node,
writer
<<
"
\n
)
\n
"
;
writer
<<
"{
\n
"
;
writer
.
indent
++
;
handler
->
second
(
writer
,
&
node
,
in
,
out
);
handler
->
second
(
this
,
writer
,
&
node
,
in
,
out
);
writer
.
indent
--
;
writer
<<
"}
\n
"
;
...
...
src/ngraph/runtime/cpu/cpu_external_function.hpp
View file @
62342c4e
...
...
@@ -43,7 +43,8 @@ namespace ngraph
class
CPU_Emitter
;
class
CPU_CallFrame
;
using
OpFunction
=
std
::
function
<
void
(
codegen
::
CodeWriter
&
,
using
OpFunction
=
std
::
function
<
void
(
CPU_ExternalFunction
*
external_function
,
codegen
::
CodeWriter
&
,
const
ngraph
::
Node
*
,
const
std
::
vector
<
TensorViewWrapper
>&
inputs
,
const
std
::
vector
<
TensorViewWrapper
>&
outputs
)
>
;
...
...
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