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
72010e76
Commit
72010e76
authored
Feb 02, 2018
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review comments
parent
910743cd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
12 deletions
+2
-12
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+1
-1
cpu_layout_descriptor.cpp
src/ngraph/runtime/cpu/cpu_layout_descriptor.cpp
+0
-4
tensor_view.cpp
src/ngraph/runtime/tensor_view.cpp
+0
-5
tensor_view.hpp
src/ngraph/runtime/tensor_view.hpp
+0
-1
test_tools.hpp
test/util/test_tools.hpp
+1
-1
No files found.
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
72010e76
...
...
@@ -228,7 +228,7 @@ void runtime::cpu::CPU_ExternalFunction::compile()
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
CPULayout
>
();
pass_manager
.
register_pass
<
ngraph
::
pass
::
Liveness
>
();
pass_manager
.
register_pass
<
ngraph
::
pass
::
MemoryLayout
>
(
64
);
pass_manager
.
register_pass
<
ngraph
::
pass
::
MemoryLayout
>
(
MemoryPoolAlignment
);
pass_manager
.
run_passes
(
m_function
);
codegen
::
CodeWriter
writer
;
...
...
src/ngraph/runtime/cpu/cpu_layout_descriptor.cpp
View file @
72010e76
...
...
@@ -92,10 +92,6 @@ namespace ngraph
if
(
offset
!=
p_other
->
offset
)
return
false
;
//TODO: Numeric backend-specific properties
// if (mkldnn_format != p_other->mkldnn_format)
// return false;
return
true
;
}
}
...
...
src/ngraph/runtime/tensor_view.cpp
View file @
72010e76
...
...
@@ -47,11 +47,6 @@ const Strides& runtime::TensorView::get_strides() const
return
m_descriptor
->
get_tensor_view_layout
()
->
get_strides
();
}
const
element
::
Type
&
runtime
::
TensorView
::
get_element_type
()
const
{
return
m_descriptor
->
get_tensor_view_type
()
->
get_element_type
();
}
shared_ptr
<
descriptor
::
layout
::
TensorViewLayout
>
runtime
::
TensorView
::
get_tensor_view_layout
()
const
{
return
m_descriptor
->
get_tensor_view_layout
();
...
...
src/ngraph/runtime/tensor_view.hpp
View file @
72010e76
...
...
@@ -53,7 +53,6 @@ namespace ngraph
const
ngraph
::
Shape
&
get_shape
()
const
;
const
ngraph
::
Strides
&
get_strides
()
const
;
const
ngraph
::
element
::
Type
&
get_element_type
()
const
;
size_t
get_element_count
()
const
;
const
ngraph
::
descriptor
::
Tensor
&
get_tensor
()
const
;
...
...
test/util/test_tools.hpp
View file @
72010e76
...
...
@@ -40,7 +40,7 @@ void copy_data(std::shared_ptr<ngraph::runtime::TensorView> tv, const std::vecto
template
<
typename
T
>
std
::
vector
<
T
>
read_vector
(
std
::
shared_ptr
<
ngraph
::
runtime
::
TensorView
>
tv
)
{
if
(
ngraph
::
element
::
from
<
T
>
()
!=
tv
->
get_element_type
())
if
(
ngraph
::
element
::
from
<
T
>
()
!=
tv
->
get_
tensor_view_layout
()
->
get_
element_type
())
{
throw
std
::
invalid_argument
(
"read_vector type must match TensorView type"
);
}
...
...
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