From 4f47352aaee29c7041eb7c4afed574b5be7989ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=84=B8=ED=9D=AC/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 16 Oct 2019 17:23:47 +0900 Subject: [PATCH] [moco-tf] Remove IR tests (#8225) This will remove IR test codes that already moved to moco-lang Signed-off-by: SaeHie Park --- compiler/moco-tf/src/IR/TFAdd.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFAvgPool.test.cpp | 35 ------------ compiler/moco-tf/src/IR/TFBiasAdd.test.cpp | 33 ----------- compiler/moco-tf/src/IR/TFConcatV2.test.cpp | 35 ------------ compiler/moco-tf/src/IR/TFConst.test.cpp | 65 ---------------------- compiler/moco-tf/src/IR/TFConv2D.test.cpp | 35 ------------ .../src/IR/TFDepthwiseConv2dNative.test.cpp | 35 ------------ compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp | 36 ------------ compiler/moco-tf/src/IR/TFIdentity.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFMaxPool.test.cpp | 35 ------------ compiler/moco-tf/src/IR/TFMean.test.cpp | 33 ----------- compiler/moco-tf/src/IR/TFMul.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFPad.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFRealDiv.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFRelu.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFRelu6.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFReshape.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFRsqrt.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFShape.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFSoftmax.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFSqrt.test.cpp | 31 ----------- .../moco-tf/src/IR/TFSquaredDifference.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFSqueeze.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFStopGradient.test.cpp | 31 ----------- compiler/moco-tf/src/IR/TFSub.test.cpp | 32 ----------- compiler/moco-tf/src/IR/TFTanh.test.cpp | 31 ----------- 26 files changed, 878 deletions(-) delete mode 100644 compiler/moco-tf/src/IR/TFAdd.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFAvgPool.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFBiasAdd.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFConcatV2.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFConst.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFConv2D.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFIdentity.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFMaxPool.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFMean.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFMul.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFPad.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFRealDiv.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFRelu.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFRelu6.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFReshape.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFRsqrt.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFShape.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFSoftmax.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFSqrt.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFSquaredDifference.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFSqueeze.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFStopGradient.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFSub.test.cpp delete mode 100644 compiler/moco-tf/src/IR/TFTanh.test.cpp diff --git a/compiler/moco-tf/src/IR/TFAdd.test.cpp b/compiler/moco-tf/src/IR/TFAdd.test.cpp deleted file mode 100644 index 3134f86..0000000 --- a/compiler/moco-tf/src/IR/TFAdd.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFAdd.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFAddTest, constructor) -{ - moco::tf::TFAdd add_node; - - ASSERT_EQ(add_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(add_node.opcode(), moco::tf::TFOpcode::Add); - - ASSERT_EQ(add_node.x(), nullptr); - ASSERT_EQ(add_node.y(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFAvgPool.test.cpp b/compiler/moco-tf/src/IR/TFAvgPool.test.cpp deleted file mode 100644 index 1e17122..0000000 --- a/compiler/moco-tf/src/IR/TFAvgPool.test.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFAvgPool.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFAvgPoolTest, constructor) -{ - moco::tf::TFAvgPool avgpool; - - ASSERT_EQ(avgpool.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(avgpool.opcode(), moco::tf::TFOpcode::AvgPool); - - ASSERT_EQ(avgpool.value(), nullptr); - ASSERT_EQ(avgpool.data_layout(), ""); - ASSERT_EQ(avgpool.padding(), ""); - ASSERT_EQ(avgpool.ksize(), std::vector({})); - ASSERT_EQ(avgpool.strides(), std::vector({})); -} diff --git a/compiler/moco-tf/src/IR/TFBiasAdd.test.cpp b/compiler/moco-tf/src/IR/TFBiasAdd.test.cpp deleted file mode 100644 index 8fc1cdd..0000000 --- a/compiler/moco-tf/src/IR/TFBiasAdd.test.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFBiasAdd.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFBiasAddTest, constructor) -{ - moco::tf::TFBiasAdd bias_add; - - ASSERT_EQ(bias_add.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(bias_add.opcode(), moco::tf::TFOpcode::BiasAdd); - - ASSERT_EQ(bias_add.value(), nullptr); - ASSERT_EQ(bias_add.bias(), nullptr); - ASSERT_EQ(bias_add.data_layout(), ""); -} diff --git a/compiler/moco-tf/src/IR/TFConcatV2.test.cpp b/compiler/moco-tf/src/IR/TFConcatV2.test.cpp deleted file mode 100644 index 89eac1b..0000000 --- a/compiler/moco-tf/src/IR/TFConcatV2.test.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFConcatV2.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFConcatV2Test, constructor) -{ - moco::tf::TFConcatV2 concatv2_node(3); // num of values - - ASSERT_EQ(concatv2_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(concatv2_node.opcode(), moco::tf::TFOpcode::ConcatV2); - - ASSERT_EQ(concatv2_node.num_values(), 3); - ASSERT_EQ(concatv2_node.values(0), nullptr); - ASSERT_EQ(concatv2_node.values(1), nullptr); - ASSERT_EQ(concatv2_node.values(2), nullptr); - ASSERT_EQ(concatv2_node.axis(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFConst.test.cpp b/compiler/moco-tf/src/IR/TFConst.test.cpp deleted file mode 100644 index 6963122..0000000 --- a/compiler/moco-tf/src/IR/TFConst.test.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFConst.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFConstantTest, constructor) -{ - moco::tf::TFConst constant; - - ASSERT_EQ(constant.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(constant.opcode(), moco::tf::TFOpcode::Const); - - ASSERT_EQ(constant.dtype(), loco::DataType::Unknown); - ASSERT_EQ(constant.rank(), 0); - - constant.dtype(loco::DataType::FLOAT32); - ASSERT_EQ(constant.dtype(), loco::DataType::FLOAT32); - - constant.rank(2); - ASSERT_EQ(constant.rank(), 2); - - constant.dim(0) = 2; - constant.dim(1) = 3; - - ASSERT_TRUE(constant.dim(0).known()); - ASSERT_TRUE(constant.dim(1).known()); - - ASSERT_EQ(constant.dim(0), 2); - ASSERT_EQ(constant.dim(1), 3); - - constant.size(6); - - ASSERT_EQ(constant.size(), 6); - - constant.at(0) = 0.0f; // Set 0,0 - constant.at(1) = 1.0f; // Set 0,1 - constant.at(2) = 2.0f; // Set 0,2 - constant.at(3) = 3.0f; // Set 1,0 - constant.at(4) = 4.0f; // Set 1,1 - constant.at(5) = 5.0f; // Set 1,2 - - ASSERT_EQ(constant.at(0), 0.0f); - ASSERT_EQ(constant.at(1), 1.0f); - ASSERT_EQ(constant.at(2), 2.0f); - ASSERT_EQ(constant.at(3), 3.0f); - ASSERT_EQ(constant.at(4), 4.0f); - ASSERT_EQ(constant.at(5), 5.0f); -} diff --git a/compiler/moco-tf/src/IR/TFConv2D.test.cpp b/compiler/moco-tf/src/IR/TFConv2D.test.cpp deleted file mode 100644 index e1fa4ed..0000000 --- a/compiler/moco-tf/src/IR/TFConv2D.test.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFConv2D.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFConv2DTest, constructor) -{ - moco::tf::TFConv2D conv2d_node; - - ASSERT_EQ(conv2d_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(conv2d_node.opcode(), moco::tf::TFOpcode::Conv2D); - - ASSERT_EQ(conv2d_node.input(), nullptr); - ASSERT_EQ(conv2d_node.filter(), nullptr); - ASSERT_EQ(conv2d_node.padding(), ""); - ASSERT_EQ(conv2d_node.data_layout(), ""); - ASSERT_EQ(conv2d_node.strides().size(), 0); -} diff --git a/compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.test.cpp b/compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.test.cpp deleted file mode 100644 index 0861456..0000000 --- a/compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.test.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFDepthwiseConv2dNative.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFDepthwiseConv2dNativeTest, constructor) -{ - moco::tf::TFDepthwiseConv2dNative depthwiseConv2dnative_node; - - ASSERT_EQ(depthwiseConv2dnative_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(depthwiseConv2dnative_node.opcode(), moco::tf::TFOpcode::DepthwiseConv2dNative); - - ASSERT_EQ(depthwiseConv2dnative_node.input(), nullptr); - ASSERT_EQ(depthwiseConv2dnative_node.filter(), nullptr); - ASSERT_EQ(depthwiseConv2dnative_node.padding(), ""); - ASSERT_EQ(depthwiseConv2dnative_node.data_layout(), ""); - ASSERT_EQ(depthwiseConv2dnative_node.strides().size(), 0); -} diff --git a/compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp b/compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp deleted file mode 100644 index 38db8cf..0000000 --- a/compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFFusedBatchNorm.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFFusedBatchNormTest, constructor) -{ - moco::tf::TFFusedBatchNorm fbn_node; - - ASSERT_EQ(fbn_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(fbn_node.opcode(), moco::tf::TFOpcode::FusedBatchNorm); - - ASSERT_EQ(fbn_node.input(), nullptr); - ASSERT_EQ(fbn_node.gamma(), nullptr); - ASSERT_EQ(fbn_node.beta(), nullptr); - ASSERT_EQ(fbn_node.mean(), nullptr); - ASSERT_EQ(fbn_node.variance(), nullptr); - ASSERT_NE(fbn_node.epsilon(), 0.0f); -} diff --git a/compiler/moco-tf/src/IR/TFIdentity.test.cpp b/compiler/moco-tf/src/IR/TFIdentity.test.cpp deleted file mode 100644 index 4ea3e7a..0000000 --- a/compiler/moco-tf/src/IR/TFIdentity.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFIdentity.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFIdentituTest, constructor) -{ - moco::tf::TFIdentity identity_node; - - ASSERT_EQ(identity_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(identity_node.opcode(), moco::tf::TFOpcode::Identity); - - ASSERT_EQ(identity_node.input(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFMaxPool.test.cpp b/compiler/moco-tf/src/IR/TFMaxPool.test.cpp deleted file mode 100644 index b86e21e..0000000 --- a/compiler/moco-tf/src/IR/TFMaxPool.test.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFMaxPool.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFMaxPoolTest, constructor) -{ - moco::tf::TFMaxPool maxpool; - - ASSERT_EQ(maxpool.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(maxpool.opcode(), moco::tf::TFOpcode::MaxPool); - - ASSERT_EQ(maxpool.value(), nullptr); - ASSERT_EQ(maxpool.data_layout(), ""); - ASSERT_EQ(maxpool.padding(), ""); - ASSERT_EQ(maxpool.ksize(), std::vector({})); - ASSERT_EQ(maxpool.strides(), std::vector({})); -} diff --git a/compiler/moco-tf/src/IR/TFMean.test.cpp b/compiler/moco-tf/src/IR/TFMean.test.cpp deleted file mode 100644 index 3c580c0..0000000 --- a/compiler/moco-tf/src/IR/TFMean.test.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFMean.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFMeanTest, constructor) -{ - moco::tf::TFMean mean_node; - - ASSERT_EQ(mean_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(mean_node.opcode(), moco::tf::TFOpcode::Mean); - - ASSERT_EQ(mean_node.input(), nullptr); - ASSERT_EQ(mean_node.reduction_indices(), nullptr); - ASSERT_EQ(mean_node.keep_dims(), false); -} diff --git a/compiler/moco-tf/src/IR/TFMul.test.cpp b/compiler/moco-tf/src/IR/TFMul.test.cpp deleted file mode 100644 index cc7c588..0000000 --- a/compiler/moco-tf/src/IR/TFMul.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFMul.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFMulTest, constructor) -{ - moco::tf::TFMul mul_node; - - ASSERT_EQ(mul_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(mul_node.opcode(), moco::tf::TFOpcode::Mul); - - ASSERT_EQ(mul_node.x(), nullptr); - ASSERT_EQ(mul_node.y(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFPad.test.cpp b/compiler/moco-tf/src/IR/TFPad.test.cpp deleted file mode 100644 index 75a9d01..0000000 --- a/compiler/moco-tf/src/IR/TFPad.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFPad.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFPadTest, constructor) -{ - moco::tf::TFPad pad; - - ASSERT_EQ(pad.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(pad.opcode(), moco::tf::TFOpcode::Pad); - - ASSERT_EQ(pad.input(), nullptr); - ASSERT_EQ(pad.paddings(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFRealDiv.test.cpp b/compiler/moco-tf/src/IR/TFRealDiv.test.cpp deleted file mode 100644 index 1c7029f..0000000 --- a/compiler/moco-tf/src/IR/TFRealDiv.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFRealDiv.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFRealDivTest, constructor) -{ - moco::tf::TFRealDiv div_node; - - ASSERT_EQ(div_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(div_node.opcode(), moco::tf::TFOpcode::RealDiv); - - ASSERT_EQ(div_node.x(), nullptr); - ASSERT_EQ(div_node.y(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFRelu.test.cpp b/compiler/moco-tf/src/IR/TFRelu.test.cpp deleted file mode 100644 index 7762079..0000000 --- a/compiler/moco-tf/src/IR/TFRelu.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFRelu.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFReluTest, constructor) -{ - moco::tf::TFRelu relu_node; - - ASSERT_EQ(relu_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(relu_node.opcode(), moco::tf::TFOpcode::Relu); - - ASSERT_EQ(relu_node.features(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFRelu6.test.cpp b/compiler/moco-tf/src/IR/TFRelu6.test.cpp deleted file mode 100644 index d342ccd..0000000 --- a/compiler/moco-tf/src/IR/TFRelu6.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFRelu6.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFRelu6Test, constructor) -{ - moco::tf::TFRelu6 relu6_node; - - ASSERT_EQ(relu6_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(relu6_node.opcode(), moco::tf::TFOpcode::Relu6); - - ASSERT_EQ(relu6_node.features(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFReshape.test.cpp b/compiler/moco-tf/src/IR/TFReshape.test.cpp deleted file mode 100644 index 39d77e4..0000000 --- a/compiler/moco-tf/src/IR/TFReshape.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFReshape.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFReshapeTest, constructor) -{ - moco::tf::TFReshape reshape_node; - - ASSERT_EQ(reshape_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(reshape_node.opcode(), moco::tf::TFOpcode::Reshape); - - ASSERT_EQ(reshape_node.tensor(), nullptr); - ASSERT_EQ(reshape_node.shape(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFRsqrt.test.cpp b/compiler/moco-tf/src/IR/TFRsqrt.test.cpp deleted file mode 100644 index 7f92704..0000000 --- a/compiler/moco-tf/src/IR/TFRsqrt.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFRsqrt.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFRsqrtTest, constructor) -{ - moco::tf::TFRsqrt rsqrt_node; - - ASSERT_EQ(rsqrt_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(rsqrt_node.opcode(), moco::tf::TFOpcode::Rsqrt); - - ASSERT_EQ(rsqrt_node.x(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFShape.test.cpp b/compiler/moco-tf/src/IR/TFShape.test.cpp deleted file mode 100644 index 6c68888..0000000 --- a/compiler/moco-tf/src/IR/TFShape.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFShape.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFShapeTest, constructor) -{ - moco::tf::TFShape shape_node; - - ASSERT_EQ(shape_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(shape_node.opcode(), moco::tf::TFOpcode::Shape); - - ASSERT_EQ(shape_node.input(), nullptr); - ASSERT_EQ(shape_node.dtype(), loco::DataType::Unknown); -} diff --git a/compiler/moco-tf/src/IR/TFSoftmax.test.cpp b/compiler/moco-tf/src/IR/TFSoftmax.test.cpp deleted file mode 100644 index 99c7cbc..0000000 --- a/compiler/moco-tf/src/IR/TFSoftmax.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFSoftmax.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFSoftmaxTest, constructor) -{ - moco::tf::TFSoftmax softmax_node; - - ASSERT_EQ(softmax_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(softmax_node.opcode(), moco::tf::TFOpcode::Softmax); - - ASSERT_EQ(softmax_node.logits(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFSqrt.test.cpp b/compiler/moco-tf/src/IR/TFSqrt.test.cpp deleted file mode 100644 index 9048d57..0000000 --- a/compiler/moco-tf/src/IR/TFSqrt.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFSqrt.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFSqrtTest, constructor) -{ - moco::tf::TFSqrt sqrt_node; - - ASSERT_EQ(sqrt_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(sqrt_node.opcode(), moco::tf::TFOpcode::Sqrt); - - ASSERT_EQ(sqrt_node.x(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFSquaredDifference.test.cpp b/compiler/moco-tf/src/IR/TFSquaredDifference.test.cpp deleted file mode 100644 index f83d28c..0000000 --- a/compiler/moco-tf/src/IR/TFSquaredDifference.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFSquaredDifference.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFSquaredDifferenceTest, constructor) -{ - moco::tf::TFSquaredDifference sd_node; - - ASSERT_EQ(sd_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(sd_node.opcode(), moco::tf::TFOpcode::SquaredDifference); - - ASSERT_EQ(sd_node.x(), nullptr); - ASSERT_EQ(sd_node.y(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFSqueeze.test.cpp b/compiler/moco-tf/src/IR/TFSqueeze.test.cpp deleted file mode 100644 index 1ab219b..0000000 --- a/compiler/moco-tf/src/IR/TFSqueeze.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFSqueeze.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFSqueezeTest, constructor) -{ - moco::tf::TFSqueeze squeeze_node; - - ASSERT_EQ(squeeze_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(squeeze_node.opcode(), moco::tf::TFOpcode::Squeeze); - - ASSERT_EQ(squeeze_node.input(), nullptr); - ASSERT_EQ(squeeze_node.squeeze_dims().size(), 0); -} diff --git a/compiler/moco-tf/src/IR/TFStopGradient.test.cpp b/compiler/moco-tf/src/IR/TFStopGradient.test.cpp deleted file mode 100644 index dafd1a5..0000000 --- a/compiler/moco-tf/src/IR/TFStopGradient.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFStopGradient.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFStopGradientTest, constructor) -{ - moco::tf::TFStopGradient node; - - ASSERT_EQ(node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(node.opcode(), moco::tf::TFOpcode::StopGradient); - - ASSERT_EQ(node.input(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFSub.test.cpp b/compiler/moco-tf/src/IR/TFSub.test.cpp deleted file mode 100644 index 79f7466..0000000 --- a/compiler/moco-tf/src/IR/TFSub.test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFSub.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFSubTest, constructor) -{ - moco::tf::TFSub sub_node; - - ASSERT_EQ(sub_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(sub_node.opcode(), moco::tf::TFOpcode::Sub); - - ASSERT_EQ(sub_node.x(), nullptr); - ASSERT_EQ(sub_node.y(), nullptr); -} diff --git a/compiler/moco-tf/src/IR/TFTanh.test.cpp b/compiler/moco-tf/src/IR/TFTanh.test.cpp deleted file mode 100644 index 0ff1af6..0000000 --- a/compiler/moco-tf/src/IR/TFTanh.test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "IR/TFTanh.h" - -#include "Dialect/TFDialect.h" - -#include - -TEST(TFTanhTest, constructor) -{ - moco::tf::TFTanh tanh_node; - - ASSERT_EQ(tanh_node.dialect(), moco::tf::TFDialect::get()); - ASSERT_EQ(tanh_node.opcode(), moco::tf::TFOpcode::Tanh); - - ASSERT_EQ(tanh_node.x(), nullptr); -} -- 2.7.4