Skip to content

Commit

Permalink
rebase to master. fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
xczhai committed Aug 28, 2023
1 parent df5a8f7 commit 38f4dcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/frontends/paddle/src/op_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ OP_CONVERTER(share_data);
OP_CONVERTER(sigmoid);
OP_CONVERTER(silu);
OP_CONVERTER(sin);
OP_CONVERTER(sigmoid);
OP_CONVERTER(silu);
OP_CONVERTER(slice);
OP_CONVERTER(softmax);
OP_CONVERTER(softplus);
Expand Down Expand Up @@ -228,16 +226,10 @@ std::map<std::string, CreatorFunction> get_supported_ops() {
{"select_input", op::select_input},
{"set_value", op::set_value},
{"shape", op::shape},
<<<<<<< HEAD
{"share_data", op::share_data},
{"sigmoid", op::sigmoid},
{"silu", op::silu},
||||||| parent of 794e619351 (- enable cos)
=======
{"sigmoid", op::sigmoid},
{"silu", op::silu},
{"sin", op::sin},
>>>>>>> 794e619351 (- enable cos)
{"slice", op::slice},
{"softmax", op::softmax},
{"softplus", op::softplus},
Expand Down
3 changes: 2 additions & 1 deletion src/frontends/paddle/tests/convert_unsupported.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "common_test_utils/ngraph_test_utils.hpp"
#include "paddle_utils.hpp"
#include "utils.hpp"
#include "openvino/opsets/opset6.hpp"

using namespace ngraph;
using namespace ov::frontend;
Expand All @@ -32,7 +33,7 @@ TEST(FrontEndConvertModelTest, test_unsupported_op) {

for (auto& node : function->get_ordered_ops()) {
if (node->get_friendly_name() == "rxyz_0.tmp_0") {
function->replace_node(node, std::make_shared<opset6::Relu>(node->input(0).get_source_output()));
function->replace_node(node, std::make_shared<ov::opset6::Relu>(node->input(0).get_source_output()));
}
}
ASSERT_NO_THROW(frontEnd->convert(function));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def cos(name:str, x):
return outs[0]

def main():
x = np.random.uniform((-1000,1000), 8, 24, 32).astype(data_type)
x = np.random.uniform(-1000,1000, (8, 24, 32)).astype(data_type)

cos("cos", x)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def sin(name:str, x):
return outs[0]

def main():
x = np.random.uniform((-1000,1000), 8, 24, 32).astype(data_type)
x = np.random.uniform(-1000,1000, (8, 24, 32)).astype(data_type)

sin("sin", x)

Expand Down

0 comments on commit 38f4dcf

Please sign in to comment.