• mozga-intel's avatar
    [ NonZero ] operator with constant folding and onnx_importer support (#4431) · 37d37314
    mozga-intel authored
    * There is the files "non_zero.cpp & non_zero.hpp" for which operator non_zero is defined"
    The two files were added: non_zero.cpp & non_zero.hpp
    
    * The pull request present a study of extension of the NonZero operatos used for ML models:
    1) The various type of files was modified: cpp & hpp, onnx files & ng files
    2) Non_zero operator supports the onnx standard (there are added the files in which the operator is enabled: non_zero.cpp & non_zero.hpp)
    i
    
    * Operator description: refactor
    
    * GPU emitter - is not implemented
    
    * GPU emitter: v0 version
    
    * NoN zero: the input and output is adjusted to output shape & input_shape
    
    * Move the NonZero op to v3 namespace
    
    * Move NonZero to opset3
    
    * Correct shape inference for NonZero
    
    * NonZero op constant folding for 0D and 1D inputs
    
    * Constant folding for NonZero op
    
    * Correct output shape for NonZero & scalars
    
    * Helper function to test NonZero
    
    * NonZero constant folding UT for floats
    
    * Enable more data types in NonZero CF
    
    * NonZero type prop tests
    
    * NonZero constant folding tests (directly)
    
    * Use is_constant instead of casting in UT
    
    * NonZero op doxygen docs
    
    * onnx_importer docs adjustment
    
    * Correct version of the NonZero core op
    
    * Disable NonZero in GPU backend
    
    * Short circuit if all elems in data are identical
    
    * find_indices() optimization
    
    * Assert on the input shape in NonZeroElements
    
    * CF of NonZero with all non-zero values
    
    * NonZero CF test for scalars
    
    * bool support in NonZero
    
    * Missing include in NonZero CF
    
    * Dont throw if NonZero CF fails
    
    * Update src/ngraph/pass/constant_folding_non_zero.cpp
    Co-Authored-By: 's avatarRobert Kimball <robert.kimball@intel.com>
    
    * Removing warning
    Co-authored-by: 's avatartomdol <tomasz.dolbniak@intel.com>
    Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
    Co-authored-by: 's avatarRobert Kimball <robert.kimball@intel.com>
    37d37314
Name
Last commit
Last update
..
backend Loading commit data...
files Loading commit data...
mlir Loading commit data...
models Loading commit data...
onnx Loading commit data...
opset_pass Loading commit data...
ref_generators Loading commit data...
type_prop Loading commit data...
util Loading commit data...
CMakeLists.txt Loading commit data...
algebraic_simplification.cpp Loading commit data...
aligned_buffer.cpp Loading commit data...
all_close_f.cpp Loading commit data...
assertion.cpp Loading commit data...
attributes.cpp Loading commit data...
backend_api.cpp Loading commit data...
backend_debug_api.cpp Loading commit data...
backend_performance.cpp Loading commit data...
bfloat16.cpp Loading commit data...
build_graph.cpp Loading commit data...
builder.cpp Loading commit data...
builder_autobroadcast.cpp Loading commit data...
builder_quantization.cpp Loading commit data...
check.cpp Loading commit data...
concat_fusion.cpp Loading commit data...
constant.cpp Loading commit data...
constant_folding.cpp Loading commit data...
control_dependencies.cpp Loading commit data...
convert_u1_to_string.cpp Loading commit data...
coordinate.cpp Loading commit data...
copy.cpp Loading commit data...
core.cpp Loading commit data...
core_fusion.cpp Loading commit data...
cpio.cpp Loading commit data...
cpu_codegen.cpp Loading commit data...
cpu_debug_tracer.cpp Loading commit data...
cpu_debugger.cpp Loading commit data...
cpu_fusion.cpp Loading commit data...
cpu_test.cpp Loading commit data...
cse.cpp Loading commit data...
dyn_elimination.cpp Loading commit data...
element_type.cpp Loading commit data...
file_util.cpp Loading commit data...
float16.cpp Loading commit data...
gpu_fusion.cpp Loading commit data...
gpu_test.cpp Loading commit data...
includes.cpp Loading commit data...
input_output_assign.cpp Loading commit data...
main.cpp Loading commit data...
misc.cpp Loading commit data...
misc.hpp Loading commit data...
mkldnn.cpp Loading commit data...
ngraph_api.cpp Loading commit data...
node_input_output.cpp Loading commit data...
nop_elimination.cpp Loading commit data...
op.cpp Loading commit data...
op_is.cpp Loading commit data...
opset1.cpp Loading commit data...
partial_shape.cpp Loading commit data...
pass.cpp Loading commit data...
pass_liveness.cpp Loading commit data...
pass_manager.cpp Loading commit data...
pass_memory_layout.cpp Loading commit data...
pass_shape_relevance.cpp Loading commit data...
pattern.cpp Loading commit data...
provenance.cpp Loading commit data...
replace_node.cpp Loading commit data...
reshape_elimination.cpp Loading commit data...
reshape_sinking.cpp Loading commit data...
serialize.cpp Loading commit data...
shape.cpp Loading commit data...
specialize_function.cpp Loading commit data...
tensor.cpp Loading commit data...
tools.cpp Loading commit data...
type_prop_benchmark.cpp Loading commit data...
type_prop_layers.cpp Loading commit data...
update_convolution_reference.sh Loading commit data...
update_dyn_replace_slice_reference.sh Loading commit data...
update_dyn_slice_reference.sh Loading commit data...
util.cpp Loading commit data...
zero_dim_tensor_elimination.cpp Loading commit data...