diff --git a/.ci/azure/linux.yml b/.ci/azure/linux.yml index 74cf6a91c2d4be..16c9969065c834 100644 --- a/.ci/azure/linux.yml +++ b/.ci/azure/linux.yml @@ -1,3 +1,12 @@ +trigger: + branches: + include: + - master + - releases/* + paths: + exclude: + - docs/* + resources: repositories: - repository: openvino_contrib diff --git a/.ci/azure/windows.yml b/.ci/azure/windows.yml index e234836ce1bc80..4abf015d92516f 100644 --- a/.ci/azure/windows.yml +++ b/.ci/azure/windows.yml @@ -1,3 +1,12 @@ +trigger: + branches: + include: + - master + - releases/* + paths: + exclude: + - docs/* + resources: repositories: - repository: openvino_contrib diff --git a/ngraph/frontend/paddlepaddle/src/op/elementwise_ops.cpp b/ngraph/frontend/paddlepaddle/src/op/elementwise_ops.cpp index 78c6da2c35359f..d44df7acbd7722 100644 --- a/ngraph/frontend/paddlepaddle/src/op/elementwise_ops.cpp +++ b/ngraph/frontend/paddlepaddle/src/op/elementwise_ops.cpp @@ -80,6 +80,10 @@ NamedOutputs elementwise_greater_equal(const NodeContext& node_context) { return elementwise_ops(node_context); } +NamedOutputs elementwise_not_equal(const NodeContext& node_context) { + return elementwise_ops(node_context); +} + } // namespace op } // namespace pdpd } // namespace frontend diff --git a/ngraph/frontend/paddlepaddle/src/op_table.cpp b/ngraph/frontend/paddlepaddle/src/op_table.cpp index b49ae1cf26cede..8c4fa547746fdd 100644 --- a/ngraph/frontend/paddlepaddle/src/op_table.cpp +++ b/ngraph/frontend/paddlepaddle/src/op_table.cpp @@ -28,6 +28,7 @@ OP_CONVERTER(elementwise_greater_equal); OP_CONVERTER(elementwise_max); OP_CONVERTER(elementwise_min); OP_CONVERTER(elementwise_mul); +OP_CONVERTER(elementwise_not_equal); OP_CONVERTER(elementwise_pow); OP_CONVERTER(elementwise_sub); OP_CONVERTER(embedding); @@ -130,6 +131,7 @@ std::map get_supported_ops() { {"multiclass_nms3", op::multiclass_nms}, {"nearest_interp_v2", op::nearest_interp_v2}, {"nearest_interp", op::nearest_interp_v2}, + {"not_equal", op::elementwise_not_equal}, {"pad3d", op::pad3d}, {"pow", op::pow}, {"pool2d", op::pool2d}, diff --git a/ngraph/test/frontend/paddlepaddle/op_fuzzy.cpp b/ngraph/test/frontend/paddlepaddle/op_fuzzy.cpp index e81cfb9ccdf5b9..f344c51ea8c3c7 100644 --- a/ngraph/test/frontend/paddlepaddle/op_fuzzy.cpp +++ b/ngraph/test/frontend/paddlepaddle/op_fuzzy.cpp @@ -162,6 +162,7 @@ static const std::vector models{std::string("argmax"), std::string("nearest_downsample_false_1"), std::string("nearest_upsample_false_0"), std::string("nearest_upsample_false_1"), + std::string("not_equal"), std::string("pad3d_test1"), std::string("pad3d_test2"), std::string("pad3d_test3"), diff --git a/ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_not_equal.py b/ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_not_equal.py new file mode 100644 index 00000000000000..3f5f33d99539d0 --- /dev/null +++ b/ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_not_equal.py @@ -0,0 +1,43 @@ +# +# not_equal paddle model generator +# +import numpy as np +from save_model import saveModel +import sys + + +def not_equal(name : str, x, y): + import paddle as pdpd + pdpd.enable_static() + + node_x = pdpd.static.data(name='x', shape=x.shape, dtype='float32') + node_y = pdpd.static.data(name='y', shape=y.shape, dtype='float32') + + out = pdpd.not_equal(node_x, node_y) + out = pdpd.cast(out, np.float32) + + cpu = pdpd.static.cpu_places(1) + exe = pdpd.static.Executor(cpu[0]) + # startup program will call initializer to initialize the parameters. + exe.run(pdpd.static.default_startup_program()) + + outs = exe.run( + feed={'x': x, 'y': y}, + fetch_list=[out]) + + saveModel(name, exe, feedkeys=['x', 'y'], fetchlist=[out], + inputs=[x, y], outputs=[outs[0]], target_dir=sys.argv[1]) + + return outs[0] + + +def main(): + import paddle as pdpd + data_x = np.array([[[[-1, 0, 1]], [[2, 3, 4]]]]).astype(np.float32) + data_y = np.array([[[[2, 0, 3]], [[3, 1, 4]]]]).astype(np.float32) + + not_equal("not_equal", data_x, data_y) + + +if __name__ == "__main__": + main()