Commit 75e15617 authored by Scott Cyphers's avatar Scott Cyphers Committed by Robert Kimball

Remove some IDE and clang warnings (#2572)

parent fb094fb1
...@@ -15,179 +15,358 @@ ...@@ -15,179 +15,358 @@
# ****************************************************************************** # ******************************************************************************
set (SRC set (SRC
assertion.hpp
autodiff/adjoints.cpp
autodiff/adjoints.hpp
axis_set.cpp axis_set.cpp
axis_set.hpp
axis_vector.cpp axis_vector.cpp
autodiff/adjoints.cpp axis_vector.hpp
builder/autobroadcast.cpp builder/autobroadcast.cpp
builder/autobroadcast.hpp
builder/make_constant.hpp
builder/numpy_transpose.cpp builder/numpy_transpose.cpp
builder/quantization/quantized_linear_convolution.cpp builder/numpy_transpose.hpp
builder/quantization.cpp builder/quantization.cpp
builder/quantization.hpp
builder/quantization/quantized_linear_convolution.cpp
builder/quantization/quantized_linear_convolution.hpp
builder/quantization_util.hpp
builder/reduce_ops.cpp builder/reduce_ops.cpp
builder/reduce_ops.hpp
builder/tensor_mask.hpp
check.hpp
code_writer.hpp
coordinate.cpp coordinate.cpp
coordinate.hpp
coordinate_diff.cpp coordinate_diff.cpp
coordinate_diff.hpp
coordinate_transform.cpp coordinate_transform.cpp
cpio.cpp
cpio.hpp
descriptor/input.cpp descriptor/input.cpp
descriptor/input.hpp
descriptor/layout/dense_tensor_layout.cpp descriptor/layout/dense_tensor_layout.cpp
descriptor/layout/dense_tensor_layout.hpp
descriptor/layout/tensor_layout.cpp descriptor/layout/tensor_layout.cpp
descriptor/layout/tensor_layout.hpp
descriptor/output.cpp descriptor/output.cpp
descriptor/output.hpp
descriptor/tensor.cpp descriptor/tensor.cpp
descriptor/tensor.hpp
dimension.cpp dimension.cpp
dimension.hpp
except.hpp
file_util.cpp file_util.cpp
file_util.hpp
function.cpp function.cpp
function.hpp
graph_util.cpp
log.cpp log.cpp
log.hpp
ngraph.cpp ngraph.cpp
ngraph.hpp
ngraph_visibility.hpp
node.cpp node.cpp
node.hpp
node_vector.hpp
op/abs.cpp op/abs.cpp
op/abs.hpp
op/acos.cpp op/acos.cpp
op/acos.hpp
op/add.cpp op/add.cpp
op/add.hpp
op/all.cpp op/all.cpp
op/all.hpp
op/allreduce.cpp op/allreduce.cpp
op/allreduce.hpp
op/and.cpp op/and.cpp
op/and.hpp
op/any.cpp op/any.cpp
op/argmin.cpp op/any.hpp
op/argmax.cpp op/argmax.cpp
op/argmax.hpp
op/argmin.cpp
op/argmin.hpp
op/asin.cpp op/asin.cpp
op/asin.hpp
op/atan.cpp op/atan.cpp
op/atan.hpp
op/avg_pool.cpp op/avg_pool.cpp
op/avg_pool.hpp
op/batch_norm.cpp op/batch_norm.cpp
op/batch_norm.hpp
op/broadcast.cpp op/broadcast.cpp
op/broadcast.hpp
op/ceiling.cpp op/ceiling.cpp
op/ceiling.hpp
op/concat.cpp op/concat.cpp
op/concat.hpp
op/constant.cpp op/constant.cpp
op/constant.hpp
op/convert.cpp op/convert.cpp
op/convert.hpp
op/convolution.cpp op/convolution.cpp
op/convolution.hpp
op/cos.cpp op/cos.cpp
op/cos.hpp
op/cosh.cpp op/cosh.cpp
op/cosh.hpp
op/dequantize.cpp op/dequantize.cpp
op/dequantize.hpp
op/divide.cpp op/divide.cpp
op/divide.hpp
op/dot.cpp op/dot.cpp
op/dot.hpp
op/embedding_lookup.cpp op/embedding_lookup.cpp
op/embedding_lookup.hpp
op/equal.cpp op/equal.cpp
op/equal.hpp
op/exp.cpp op/exp.cpp
op/exp.hpp
op/experimental/generate_mask.cpp op/experimental/generate_mask.cpp
op/experimental/generate_mask.hpp
op/experimental/quantized_avg_pool.cpp op/experimental/quantized_avg_pool.cpp
op/experimental/quantized_avg_pool.hpp
op/experimental/quantized_concat.cpp
op/experimental/quantized_concat.hpp
op/experimental/quantized_conv.cpp
op/experimental/quantized_conv.hpp
op/experimental/quantized_conv_bias.cpp op/experimental/quantized_conv_bias.cpp
op/experimental/quantized_conv_bias.hpp
op/experimental/quantized_conv_relu.cpp op/experimental/quantized_conv_relu.cpp
op/experimental/quantized_conv.cpp op/experimental/quantized_conv_relu.hpp
op/experimental/quantized_max_pool.cpp op/experimental/quantized_max_pool.cpp
op/experimental/quantized_concat.cpp op/experimental/quantized_max_pool.hpp
op/experimental/shape_of.cpp op/experimental/shape_of.cpp
op/experimental/shape_of.hpp
op/floor.cpp op/floor.cpp
op/floor.hpp
op/get_output_element.cpp op/get_output_element.cpp
op/get_output_element.hpp
op/greater.cpp op/greater.cpp
op/greater.hpp
op/greater_eq.cpp op/greater_eq.cpp
op/greater_eq.hpp
op/less.cpp op/less.cpp
op/less.hpp
op/less_eq.cpp op/less_eq.cpp
op/less_eq.hpp
op/log.cpp op/log.cpp
op/log.hpp
op/lrn.cpp op/lrn.cpp
op/lrn.hpp
op/max.cpp op/max.cpp
op/maximum.cpp op/max.hpp
op/max_pool.cpp op/max_pool.cpp
op/max_pool.hpp
op/maximum.cpp
op/maximum.hpp
op/min.cpp op/min.cpp
op/min.hpp
op/minimum.cpp op/minimum.cpp
op/minimum.hpp
op/multiply.cpp op/multiply.cpp
op/multiply.hpp
op/negative.cpp op/negative.cpp
op/negative.hpp
op/not.cpp op/not.cpp
op/not.hpp
op/not_equal.cpp op/not_equal.cpp
op/not_equal.hpp
op/one_hot.cpp op/one_hot.cpp
op/one_hot.hpp
op/op.cpp op/op.cpp
op/op.hpp
op/or.cpp op/or.cpp
op/or.hpp
op/pad.cpp op/pad.cpp
op/pad.hpp
op/parameter.cpp op/parameter.cpp
op/parameter.hpp
op/passthrough.cpp op/passthrough.cpp
op/passthrough.hpp
op/power.cpp op/power.cpp
op/power.hpp
op/product.cpp op/product.cpp
op/product.hpp
op/quantize.cpp op/quantize.cpp
op/quantize.hpp
op/relu.cpp op/relu.cpp
op/relu.hpp
op/replace_slice.cpp op/replace_slice.cpp
op/replace_slice.hpp
op/reshape.cpp op/reshape.cpp
op/reshape.hpp
op/result.cpp op/result.cpp
op/result.hpp
op/reverse.cpp op/reverse.cpp
op/reverse.hpp
op/reverse_sequence.cpp op/reverse_sequence.cpp
op/reverse_sequence.hpp
op/select.cpp op/select.cpp
op/select.hpp
op/sigmoid.cpp op/sigmoid.cpp
op/sigmoid.hpp
op/sign.cpp op/sign.cpp
op/sign.hpp
op/sin.cpp op/sin.cpp
op/sin.hpp
op/sinh.cpp op/sinh.cpp
op/sinh.hpp
op/slice.cpp op/slice.cpp
op/slice.hpp
op/softmax.cpp op/softmax.cpp
op/softmax.hpp
op/sqrt.cpp op/sqrt.cpp
op/sqrt.hpp
op/stop_gradient.cpp op/stop_gradient.cpp
op/stop_gradient.hpp
op/subtract.cpp op/subtract.cpp
op/subtract.hpp
op/sum.cpp op/sum.cpp
op/sum.hpp
op/tan.cpp op/tan.cpp
op/tan.hpp
op/tanh.cpp op/tanh.cpp
op/tanh.hpp
op/topk.cpp op/topk.cpp
op/topk.hpp
op/util/arithmetic_reduction.cpp op/util/arithmetic_reduction.cpp
op/util/arithmetic_reduction.hpp
op/util/binary_elementwise_arithmetic.cpp op/util/binary_elementwise_arithmetic.cpp
op/util/binary_elementwise_arithmetic.hpp
op/util/binary_elementwise_comparison.cpp op/util/binary_elementwise_comparison.cpp
op/util/binary_elementwise_comparison.hpp
op/util/binary_elementwise_logical.cpp op/util/binary_elementwise_logical.cpp
op/util/binary_elementwise_logical.hpp
op/util/index_reduction.cpp op/util/index_reduction.cpp
op/util/index_reduction.hpp
op/util/logical_reduction.cpp op/util/logical_reduction.cpp
op/util/logical_reduction.hpp
op/util/unary_elementwise_arithmetic.cpp op/util/unary_elementwise_arithmetic.cpp
op/util/unary_elementwise_arithmetic.hpp
parameter_vector.hpp
partial_shape.cpp partial_shape.cpp
partial_shape.hpp
pass/algebraic_simplification.cpp pass/algebraic_simplification.cpp
pass/algebraic_simplification.hpp
pass/assign_layout.hpp
pass/common_function_collection.cpp pass/common_function_collection.cpp
pass/common_function_collection.hpp
pass/constant_folding.cpp pass/constant_folding.cpp
pass/constant_folding.hpp
pass/core_fusion.cpp
pass/core_fusion.hpp
pass/cse.cpp pass/cse.cpp
pass/cse.hpp
pass/dump_sorted.cpp pass/dump_sorted.cpp
pass/dump_sorted.hpp
pass/get_output_element_elimination.cpp pass/get_output_element_elimination.cpp
pass/get_output_element_elimination.hpp
pass/graph_rewrite.cpp pass/graph_rewrite.cpp
pass/graph_rewrite.hpp
pass/like_replacement.cpp pass/like_replacement.cpp
pass/like_replacement.hpp
pass/liveness.cpp pass/liveness.cpp
pass/liveness.hpp
pass/manager.cpp pass/manager.cpp
pass/manager.hpp
pass/manager_state.cpp pass/manager_state.cpp
pass/manager_state.hpp
pass/memory_layout.cpp pass/memory_layout.cpp
pass/memory_layout.hpp
pass/memory_visualize.cpp pass/memory_visualize.cpp
pass/memory_visualize.hpp
pass/nop_elimination.cpp pass/nop_elimination.cpp
pass/nop_elimination.hpp
pass/pass.cpp pass/pass.cpp
pass/pass.hpp
pass/pass_config.cpp pass/pass_config.cpp
pass/pass_config.hpp
pass/prefix_reshape_elimination.cpp pass/prefix_reshape_elimination.cpp
pass/prefix_reshape_elimination.hpp
pass/propagate_cacheability.cpp pass/propagate_cacheability.cpp
pass/propagate_cacheability.hpp
pass/reshape_elimination.cpp pass/reshape_elimination.cpp
pass/reshape_elimination.hpp
pass/reshape_sinking.cpp pass/reshape_sinking.cpp
pass/zero_dim_tensor_elimination.cpp pass/reshape_sinking.hpp
pass/serialize.cpp
pass/serialize.hpp
pass/validate_graph.cpp pass/validate_graph.cpp
pass/validate_graph.hpp
pass/visualize_tree.cpp pass/visualize_tree.cpp
pass/core_fusion.cpp pass/visualize_tree.hpp
pass/serialize.cpp pass/zero_dim_tensor_elimination.cpp
pass/zero_dim_tensor_elimination.cpp pass/zero_dim_tensor_elimination.cpp
pass/zero_dim_tensor_elimination.hpp
pass/zero_dim_tensor_elimination.hpp
pattern/matcher.cpp pattern/matcher.cpp
pattern/matcher.hpp
pattern/op/any.hpp
pattern/op/any_of.hpp
pattern/op/label.hpp
pattern/op/pattern.hpp
pattern/op/skip.hpp
placement.cpp
placement.hpp
rank.hpp
result_vector.hpp
runtime/aligned_buffer.cpp runtime/aligned_buffer.cpp
runtime/aligned_buffer.hpp
runtime/backend.cpp runtime/backend.cpp
runtime/backend.hpp
runtime/backend_manager.cpp runtime/backend_manager.cpp
runtime/backend_manager.hpp
runtime/executable.cpp runtime/executable.cpp
runtime/executable.hpp
runtime/host_tensor.cpp runtime/host_tensor.cpp
runtime/host_tensor.hpp
runtime/performance_counter.hpp
runtime/tensor.cpp runtime/tensor.cpp
runtime/tensor.hpp
serializer.cpp serializer.cpp
serializer.hpp
shape.cpp shape.cpp
shape.hpp
shape_util.cpp shape_util.cpp
shape_util.hpp
state/rng_state.cpp state/rng_state.cpp
strides.cpp strides.cpp
strides.hpp
type/bfloat16.cpp type/bfloat16.cpp
type/element_type.cpp type/element_type.cpp
util.cpp util.cpp
util.hpp
validation_util.cpp validation_util.cpp
graph_util.cpp validation_util.hpp
placement.cpp
cpio.cpp
) )
set(SRC ${SRC} set(SRC ${SRC}
runtime/hybrid/hybrid_backend.cpp runtime/hybrid/hybrid_backend.cpp
runtime/hybrid/hybrid_backend.hpp
runtime/hybrid/hybrid_executable.cpp runtime/hybrid/hybrid_executable.cpp
runtime/hybrid/hybrid_executable.hpp
runtime/hybrid/hybrid_util.cpp runtime/hybrid/hybrid_util.cpp
runtime/hybrid/hybrid_util.hpp
runtime/hybrid/op/function_call.cpp runtime/hybrid/op/function_call.cpp
runtime/hybrid/op/function_call.hpp
runtime/hybrid/pass/default_placement.cpp runtime/hybrid/pass/default_placement.cpp
runtime/hybrid/pass/default_placement.hpp
runtime/hybrid/pass/dump.cpp runtime/hybrid/pass/dump.cpp
runtime/hybrid/pass/dump.hpp
runtime/hybrid/pass/fix_get_output_element.cpp runtime/hybrid/pass/fix_get_output_element.cpp
runtime/hybrid/pass/fix_get_output_element.hpp
runtime/hybrid/pass/liveness.cpp runtime/hybrid/pass/liveness.cpp
runtime/hybrid/pass/liveness.hpp
runtime/hybrid/pass/memory_layout.cpp runtime/hybrid/pass/memory_layout.cpp
runtime/hybrid/pass/memory_layout.hpp
) )
if(NGRAPH_DISTRIBUTED_ENABLE) if(NGRAPH_DISTRIBUTED_ENABLE)
list(APPEND SRC distributed.cpp) list(APPEND SRC distributed.cpp distributed.hpp)
endif() endif()
configure_file(version.in.hpp version.hpp) configure_file(version.in.hpp version.hpp)
......
...@@ -25,7 +25,7 @@ runtime::hybrid::op::FunctionCall::FunctionCall(const NodeVector& outputs, ...@@ -25,7 +25,7 @@ runtime::hybrid::op::FunctionCall::FunctionCall(const NodeVector& outputs,
shared_ptr<Function> function, shared_ptr<Function> function,
shared_ptr<Backend> backend) shared_ptr<Backend> backend)
: Op("FunctionCall", inputs) : Op("FunctionCall", inputs)
, m_outputs{outputs} , m_function_outputs{outputs}
, m_function{function} , m_function{function}
, m_backend{backend} , m_backend{backend}
, m_executable{backend->compile(function)} , m_executable{backend->compile(function)}
...@@ -40,7 +40,7 @@ runtime::hybrid::op::FunctionCall::FunctionCall(const NodeVector& outputs, ...@@ -40,7 +40,7 @@ runtime::hybrid::op::FunctionCall::FunctionCall(const NodeVector& outputs,
shared_ptr<Node> shared_ptr<Node>
runtime::hybrid::op::FunctionCall::copy_with_new_args(const NodeVector& new_args) const runtime::hybrid::op::FunctionCall::copy_with_new_args(const NodeVector& new_args) const
{ {
return make_shared<FunctionCall>(m_outputs, new_args, m_function, m_backend); return make_shared<FunctionCall>(m_function_outputs, new_args, m_function, m_backend);
} }
shared_ptr<runtime::Backend> runtime::hybrid::op::FunctionCall::get_backend() const shared_ptr<runtime::Backend> runtime::hybrid::op::FunctionCall::get_backend() const
......
...@@ -48,7 +48,7 @@ public: ...@@ -48,7 +48,7 @@ public:
private: private:
std::shared_ptr<Node> copy_with_new_args(const NodeVector& new_args) const override; std::shared_ptr<Node> copy_with_new_args(const NodeVector& new_args) const override;
const NodeVector m_outputs; const NodeVector m_function_outputs;
std::shared_ptr<Function> m_function; std::shared_ptr<Function> m_function;
std::shared_ptr<Backend> m_backend; std::shared_ptr<Backend> m_backend;
std::shared_ptr<Executable> m_executable; std::shared_ptr<Executable> m_executable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment