[moco-tf] Remove IR tests (#8225)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 16 Oct 2019 08:23:47 +0000 (17:23 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 16 Oct 2019 08:23:47 +0000 (17:23 +0900)
This will remove IR test codes that already moved to moco-lang

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
26 files changed:
compiler/moco-tf/src/IR/TFAdd.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFAvgPool.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFBiasAdd.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFConcatV2.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFConst.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFConv2D.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFFusedBatchNorm.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFIdentity.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFMaxPool.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFMean.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFMul.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFPad.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFRealDiv.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFRelu.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFRelu6.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFReshape.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFRsqrt.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFShape.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFSoftmax.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFSqrt.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFSquaredDifference.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFSqueeze.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFStopGradient.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFSub.test.cpp [deleted file]
compiler/moco-tf/src/IR/TFTanh.test.cpp [deleted file]

diff --git a/compiler/moco-tf/src/IR/TFAdd.test.cpp b/compiler/moco-tf/src/IR/TFAdd.test.cpp
deleted file mode 100644 (file)
index 3134f86..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 1e17122..0000000
+++ /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 <gtest/gtest.h>
-
-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<int64_t>({}));
-  ASSERT_EQ(avgpool.strides(), std::vector<int64_t>({}));
-}
diff --git a/compiler/moco-tf/src/IR/TFBiasAdd.test.cpp b/compiler/moco-tf/src/IR/TFBiasAdd.test.cpp
deleted file mode 100644 (file)
index 8fc1cdd..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 89eac1b..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 6963122..0000000
+++ /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 <gtest/gtest.h>
-
-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<loco::DataType::FLOAT32>(6);
-
-  ASSERT_EQ(constant.size<loco::DataType::FLOAT32>(), 6);
-
-  constant.at<loco::DataType::FLOAT32>(0) = 0.0f; // Set 0,0
-  constant.at<loco::DataType::FLOAT32>(1) = 1.0f; // Set 0,1
-  constant.at<loco::DataType::FLOAT32>(2) = 2.0f; // Set 0,2
-  constant.at<loco::DataType::FLOAT32>(3) = 3.0f; // Set 1,0
-  constant.at<loco::DataType::FLOAT32>(4) = 4.0f; // Set 1,1
-  constant.at<loco::DataType::FLOAT32>(5) = 5.0f; // Set 1,2
-
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(0), 0.0f);
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(1), 1.0f);
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(2), 2.0f);
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(3), 3.0f);
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(4), 4.0f);
-  ASSERT_EQ(constant.at<loco::DataType::FLOAT32>(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 (file)
index e1fa4ed..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 0861456..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 38db8cf..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 4ea3e7a..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index b86e21e..0000000
+++ /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 <gtest/gtest.h>
-
-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<int64_t>({}));
-  ASSERT_EQ(maxpool.strides(), std::vector<int64_t>({}));
-}
diff --git a/compiler/moco-tf/src/IR/TFMean.test.cpp b/compiler/moco-tf/src/IR/TFMean.test.cpp
deleted file mode 100644 (file)
index 3c580c0..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index cc7c588..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 75a9d01..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 1c7029f..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 7762079..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index d342ccd..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 39d77e4..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 7f92704..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 6c68888..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 99c7cbc..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 9048d57..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index f83d28c..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 1ab219b..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index dafd1a5..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 79f7466..0000000
+++ /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 <gtest/gtest.h>
-
-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 (file)
index 0ff1af6..0000000
+++ /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 <gtest/gtest.h>
-
-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);
-}