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
1ac8d820
Commit
1ac8d820
authored
Nov 16, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address PR review comments
parent
9a7203ce
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
10 deletions
+5
-10
compiler.cpp
src/ngraph/codegen/compiler.cpp
+1
-0
file_util.cpp
src/ngraph/file_util.cpp
+1
-1
emitter.cpp
src/ngraph/runtime/cpu/emitter.cpp
+1
-1
external_function.cpp
src/ngraph/runtime/cpu/external_function.cpp
+1
-1
memory_handler.cpp
src/ngraph/runtime/cpu/memory_handler.cpp
+0
-5
memory_handler.hpp
src/ngraph/runtime/cpu/memory_handler.hpp
+1
-2
No files found.
src/ngraph/codegen/compiler.cpp
View file @
1ac8d820
...
...
@@ -276,6 +276,7 @@ void StaticCompiler::add_header_search_path(const string& path)
if
(
error_code
ec
=
code
.
getError
())
{
// throw up
throw
runtime_error
(
"could not find file '"
+
file
+
"'"
);
}
s_header_cache
.
add_file
(
mapped_name
,
code
.
get
());
...
...
src/ngraph/file_util.cpp
View file @
1ac8d820
...
...
@@ -187,7 +187,7 @@ vector<char> ngraph::file_util::read_file_contents(const string& path)
if
(
f
)
{
char
*
p
=
data
.
data
();
int
remainder
=
static_cast
<
int
>
(
file_size
)
;
size_t
remainder
=
file_size
;
size_t
offset
=
0
;
while
(
f
&&
remainder
>
0
)
{
...
...
src/ngraph/runtime/cpu/emitter.cpp
View file @
1ac8d820
...
...
@@ -1384,7 +1384,7 @@ void Emitter::generate_call(const std::vector<TensorViewInfo>& inputs,
static
string
format_name
(
const
string
&
name
)
{
string
rc
;
if
(
name
.
size
()
>
0
)
if
(
name
.
empty
()
)
{
rc
=
" "
+
name
;
}
...
...
src/ngraph/runtime/cpu/external_function.cpp
View file @
1ac8d820
...
...
@@ -83,7 +83,7 @@
using
namespace
std
;
using
namespace
ngraph
::
runtime
::
cpu
;
static
std
::
string
s_output_dir
=
"cpu_codegen"
;
static
const
std
::
string
s_output_dir
=
"cpu_codegen"
;
class
StaticInitializers
{
...
...
src/ngraph/runtime/cpu/memory_handler.cpp
View file @
1ac8d820
...
...
@@ -41,8 +41,3 @@ runtime::cpu::MemoryHandler::~MemoryHandler()
free
(
m_allocated_buffer_pool
);
}
}
void
*
runtime
::
cpu
::
MemoryHandler
::
get_ptr
(
size_t
offset
)
const
{
return
m_aligned_buffer_pool
+
offset
;
}
src/ngraph/runtime/cpu/memory_handler.hpp
View file @
1ac8d820
...
...
@@ -34,8 +34,7 @@ public:
MemoryHandler
(
size_t
pool_size
,
size_t
alignment
);
~
MemoryHandler
();
void
*
get_ptr
(
size_t
offset
)
const
;
void
*
get_ptr
(
size_t
offset
)
const
{
return
m_aligned_buffer_pool
+
offset
;
}
private
:
char
*
m_allocated_buffer_pool
;
char
*
m_aligned_buffer_pool
;
...
...
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