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
a97e26e1
Unverified
Commit
a97e26e1
authored
Sep 13, 2019
by
Scott Cyphers
Committed by
GitHub
Sep 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cyphers/params (#3613)
* Enable unuser parameter warnings * Unused params
parent
706e705e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
37 additions
and
30 deletions
+37
-30
clang_4_0_flags.cmake
cmake/clang_4_0_flags.cmake
+0
-2
mlsl.hpp
src/ngraph/distributed/mlsl.hpp
+8
-5
quantized_dot.cpp
src/ngraph/op/quantized_dot.cpp
+2
-1
softmax.cpp
src/ngraph/op/softmax.cpp
+2
-1
quantized_dot.cpp
src/ngraph/runtime/cpu/builder/quantized_dot.cpp
+5
-4
topk.cpp
src/ngraph/runtime/cpu/builder/topk.cpp
+2
-2
cpu_backend.cpp
src/ngraph/runtime/cpu/cpu_backend.cpp
+2
-2
mkldnn_emitter.cpp
src/ngraph/runtime/cpu/mkldnn_emitter.cpp
+0
-0
mkldnn_emitter.hpp
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
+4
-4
mkldnn_invoke.cpp
src/ngraph/runtime/cpu/mkldnn_invoke.cpp
+5
-2
mkldnn_utils.cpp
src/ngraph/runtime/cpu/mkldnn_utils.cpp
+1
-1
cpu_assignment.cpp
src/ngraph/runtime/cpu/pass/cpu_assignment.cpp
+0
-0
int_backend.cpp
src/ngraph/runtime/interpreter/int_backend.cpp
+1
-1
nop_backend.cpp
src/ngraph/runtime/nop/nop_backend.cpp
+4
-4
uncomment.cpp
src/resource/uncomment.cpp
+1
-1
No files found.
cmake/clang_4_0_flags.cmake
View file @
a97e26e1
...
...
@@ -38,10 +38,8 @@ endif()
# should remove these
add_compile_options
(
-Wno-float-conversion
)
add_compile_options
(
-Wno-sign-conversion
)
add_compile_options
(
-Wno-padded
)
add_compile_options
(
-Wno-sign-compare
)
add_compile_options
(
-Wno-unused-parameter
)
add_compile_options
(
-Wno-conversion
)
add_compile_options
(
-Wno-double-promotion
)
add_compile_options
(
-Wno-undefined-func-template
)
src/ngraph/distributed/mlsl.hpp
View file @
a97e26e1
...
...
@@ -138,15 +138,18 @@ namespace ngraph
env
.
DeleteDistribution
(
distribution
);
}
void
recv
(
void
*
in
,
element
::
Type_t
element_type
,
size_t
count
,
int
src_id
)
override
void
recv
(
void
*
/* in */
,
element
::
Type_t
/* element_type */
,
size_t
/* count */
,
int
/* src_id */
)
override
{
throw
ngraph_error
(
"recv not supported/mentioned in MLSL"
);
}
void
send
(
const
void
*
in
,
element
::
Type_t
element_type
,
size_t
count
,
int
dest_id
)
override
void
send
(
const
void
*
/* in */
,
element
::
Type_t
/* element_type */
,
size_t
/* count */
,
int
/* dest_id */
)
override
{
throw
ngraph_error
(
"send not supported/mentioned in MLSL"
);
}
...
...
src/ngraph/op/quantized_dot.cpp
View file @
a97e26e1
...
...
@@ -217,7 +217,8 @@ shared_ptr<Node> op::QuantizedDot::copy_with_new_args(const NodeVector& new_args
m_output_axes
));
}
void
op
::
QuantizedDot
::
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
void
op
::
QuantizedDot
::
generate_adjoints
(
autodiff
::
Adjoints
&
/* adjoints */
,
const
NodeVector
&
/* deltas */
)
{
throw
ngraph_error
(
"Forward-propagation-only operation"
);
}
src/ngraph/op/softmax.cpp
View file @
a97e26e1
...
...
@@ -141,7 +141,8 @@ shared_ptr<Node> op::v1::Softmax::copy_with_new_args(const NodeVector& new_args)
return
make_shared
<
op
::
v1
::
Softmax
>
(
new_args
.
at
(
0
),
m_axis
);
}
void
op
::
v1
::
Softmax
::
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
void
op
::
v1
::
Softmax
::
generate_adjoints
(
autodiff
::
Adjoints
&
/* adjoints */
,
const
NodeVector
&
/* deltas */
)
{
throw
ngraph_error
(
"op::v1::Softmax::generate_adjoints function is not implemented yet"
);
...
...
src/ngraph/runtime/cpu/builder/quantized_dot.cpp
View file @
a97e26e1
...
...
@@ -79,7 +79,7 @@ namespace ngraph
arg2_buffer_index
,
arg3_buffer_index
,
out0_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
mutable
{
CPUExecutionContext
*
/* ectx */
)
mutable
{
if
(
ctx
->
first_iteration
)
{
vector
<
float
>
dyn_scales
;
...
...
@@ -121,6 +121,7 @@ namespace ngraph
template
<>
void
Builder
::
BUILDER_DECL
(
ngraph
::
op
::
QuantizedDot
)
{
(
void
)
node
;
auto
&
functors
=
external_function
->
get_functors
();
auto
arg0_shape
=
args
[
0
].
get_shape
();
...
...
@@ -161,7 +162,7 @@ namespace ngraph
arg6_buffer_index
,
arg7_buffer_index
,
out0_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
/* ectx */
)
{
kernel
(
ctx
->
buffer_data
[
arg0_buffer_index
],
ctx
->
buffer_data
[
arg1_buffer_index
],
...
...
@@ -203,7 +204,7 @@ namespace ngraph
arg6_buffer_index
,
arg7_buffer_index
,
out0_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
/* ectx */
)
{
kernel
(
ctx
->
buffer_data
[
arg0_buffer_index
],
ctx
->
buffer_data
[
arg1_buffer_index
],
...
...
@@ -245,7 +246,7 @@ namespace ngraph
arg6_buffer_index
,
arg7_buffer_index
,
out0_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
/* ectx */
)
{
kernel
(
ctx
->
buffer_data
[
arg0_buffer_index
],
ctx
->
buffer_data
[
arg1_buffer_index
],
...
...
src/ngraph/runtime/cpu/builder/topk.cpp
View file @
a97e26e1
...
...
@@ -175,7 +175,7 @@ namespace ngraph
arg_buffer_index
,
out_indices_buffer_index
,
out_values_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
/* ectx */
)
{
ngraph
::
runtime
::
reference
::
topk
<
int32_t
,
int64_t
>
(
static_cast
<
int32_t
*>
(
ctx
->
buffer_data
[
arg_buffer_index
]),
static_cast
<
int64_t
*>
(
ctx
->
buffer_data
[
out_indices_buffer_index
]),
...
...
@@ -200,7 +200,7 @@ namespace ngraph
arg_buffer_index
,
out_indices_buffer_index
,
out_values_buffer_index
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
/* ectx */
)
{
ngraph
::
runtime
::
reference
::
topk
<
int32_t
,
int32_t
>
(
static_cast
<
int32_t
*>
(
ctx
->
buffer_data
[
arg_buffer_index
]),
static_cast
<
int32_t
*>
(
ctx
->
buffer_data
[
out_indices_buffer_index
]),
...
...
src/ngraph/runtime/cpu/cpu_backend.cpp
View file @
a97e26e1
...
...
@@ -38,7 +38,7 @@ using namespace std;
extern
"C"
CPU_BACKEND_API
void
ngraph_register_cpu_backend
()
{
runtime
::
BackendManager
::
register_backend
(
"CPU"
,
[](
const
std
::
string
&
config
)
{
runtime
::
BackendManager
::
register_backend
(
"CPU"
,
[](
const
std
::
string
&
/* config */
)
{
static
bool
is_initialized
=
false
;
if
(
!
is_initialized
)
{
...
...
@@ -202,7 +202,7 @@ vector<runtime::PerformanceCounter> runtime::cpu::CPU_Executable::get_performanc
return
rc
;
}
bool
runtime
::
cpu
::
CPU_Backend
::
is_supported
(
const
Node
&
op
)
const
bool
runtime
::
cpu
::
CPU_Backend
::
is_supported
(
const
Node
&
/* op */
)
const
{
return
true
;
}
...
...
src/ngraph/runtime/cpu/mkldnn_emitter.cpp
View file @
a97e26e1
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
View file @
a97e26e1
...
...
@@ -1600,9 +1600,9 @@ namespace ngraph
template
<
bool
with_bias
>
void
build_convolution_forward
(
std
::
vector
<
mkldnn
::
memory
*>&
mkldnn_memories
,
std
::
vector
<
mkldnn
::
memory
*>&
/* mkldnn_memories */
,
std
::
vector
<
mkldnn
::
primitive
*>&
mkldnn_primitives
,
std
::
vector
<
mkldnn
::
memory
::
desc
*>&
mkldnn_scratchpad_mds
,
std
::
vector
<
mkldnn
::
memory
::
desc
*>&
/* mkldnn_scratchpad_mds */
,
const
mkldnn
::
convolution_forward
::
desc
&
desc
,
const
mkldnn
::
primitive_attr
&
attr
,
const
mkldnn
::
engine
&
engine
,
...
...
@@ -1652,9 +1652,9 @@ namespace ngraph
template
<
bool
with_bias
>
void
build_inner_product_forward
(
std
::
vector
<
mkldnn
::
memory
*>&
mkldnn_memories
,
std
::
vector
<
mkldnn
::
memory
*>&
/* mkldnn_memories */
,
std
::
vector
<
mkldnn
::
primitive
*>&
mkldnn_primitives
,
std
::
vector
<
mkldnn
::
memory
::
desc
*>&
mkldnn_scratchpad_mds
,
std
::
vector
<
mkldnn
::
memory
::
desc
*>&
/* mkldnn_scratchpad_mds */
,
const
mkldnn
::
inner_product_forward
::
desc
&
desc
,
const
mkldnn
::
primitive_attr
&
attr
,
const
mkldnn
::
engine
&
engine
,
...
...
src/ngraph/runtime/cpu/mkldnn_invoke.cpp
View file @
a97e26e1
...
...
@@ -33,8 +33,11 @@ extern "C" void ngraph::runtime::cpu::mkldnn_utils::set_memory_ptr(CPURuntimeCon
primitive
->
set_data_handle
(
ptr
);
}
extern
"C"
void
ngraph
::
runtime
::
cpu
::
mkldnn_utils
::
mkldnn_invoke_primitive
(
CPURuntimeContext
*
ctx
,
size_t
primitive_index
,
std
::
vector
<
size_t
>&
deps
,
OpType
type
)
extern
"C"
void
ngraph
::
runtime
::
cpu
::
mkldnn_utils
::
mkldnn_invoke_primitive
(
CPURuntimeContext
*
ctx
,
size_t
primitive_index
,
std
::
vector
<
size_t
>&
/* deps */
,
OpType
/* type */
)
{
mkldnn
::
stream
s
(
mkldnn
::
stream
::
kind
::
eager
);
try
...
...
src/ngraph/runtime/cpu/mkldnn_utils.cpp
View file @
a97e26e1
...
...
@@ -113,7 +113,7 @@ bool runtime::cpu::mkldnn_utils::can_create_mkldnn_md(const ngraph::element::Typ
}
bool
runtime
::
cpu
::
mkldnn_utils
::
can_create_mkldnn_md
(
const
Shape
&
dims
,
const
Strides
&
strides
,
const
Strides
&
/* strides */
,
const
ngraph
::
element
::
Type
type
)
{
auto
it
=
get_mkldnn_data_type_map
().
find
(
type
);
...
...
src/ngraph/runtime/cpu/pass/cpu_assignment.cpp
View file @
a97e26e1
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/interpreter/int_backend.cpp
View file @
a97e26e1
...
...
@@ -31,7 +31,7 @@ using namespace ngraph;
extern
"C"
INTERPRETER_BACKEND_API
void
ngraph_register_interpreter_backend
()
{
runtime
::
BackendManager
::
register_backend
(
"INTERPRETER"
,
[](
const
std
::
string
&
config
)
{
runtime
::
BackendManager
::
register_backend
(
"INTERPRETER"
,
[](
const
std
::
string
&
/* config */
)
{
return
std
::
make_shared
<
runtime
::
interpreter
::
INTBackend
>
();
});
}
...
...
src/ngraph/runtime/nop/nop_backend.cpp
View file @
a97e26e1
...
...
@@ -36,7 +36,7 @@ using descriptor::layout::DenseTensorLayout;
extern
"C"
NOP_BACKEND_API
void
ngraph_register_nop_backend
()
{
runtime
::
BackendManager
::
register_backend
(
"NOP"
,
[](
const
std
::
string
&
config
)
{
runtime
::
BackendManager
::
register_backend
(
"NOP"
,
[](
const
std
::
string
&
/* config */
)
{
return
std
::
make_shared
<
runtime
::
nop
::
NOPBackend
>
();
});
}
...
...
@@ -62,7 +62,7 @@ shared_ptr<runtime::Executable>
}
runtime
::
nop
::
NOPExecutable
::
NOPExecutable
(
shared_ptr
<
Function
>
function
,
bool
enable_performance_collection
)
bool
/* enable_performance_collection */
)
{
pass
::
Manager
pass_manager
;
pass_manager
.
register_pass
<
pass
::
AssignLayout
<
DenseTensorLayout
>>
();
...
...
@@ -71,8 +71,8 @@ runtime::nop::NOPExecutable::NOPExecutable(shared_ptr<Function> function,
set_parameters_and_results
(
*
function
);
}
bool
runtime
::
nop
::
NOPExecutable
::
call
(
const
vector
<
shared_ptr
<
runtime
::
Tensor
>>&
outputs
,
const
vector
<
shared_ptr
<
runtime
::
Tensor
>>&
inputs
)
bool
runtime
::
nop
::
NOPExecutable
::
call
(
const
vector
<
shared_ptr
<
runtime
::
Tensor
>>&
/* outputs */
,
const
vector
<
shared_ptr
<
runtime
::
Tensor
>>&
/* inputs */
)
{
return
true
;
}
src/resource/uncomment.cpp
View file @
a97e26e1
...
...
@@ -23,7 +23,7 @@ using namespace std;
// start 23,749,645 in 1,912 files
void
skip_comment
(
istream
&
s
)
void
skip_comment
(
istream
&
/* s */
)
{
}
...
...
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