[loco] Introduce FilterAxis enum class (#3669)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 3 Jun 2019 23:53:33 +0000 (08:53 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 3 Jun 2019 23:53:33 +0000 (08:53 +0900)
This commit introduces FilterAxis enum class which denotes the name of
each axis of any convolutional filter data.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/loco/include/loco/IR/FilterAxis.h [new file with mode: 0644]
contrib/loco/src/IR/FilterAxis.cpp [new file with mode: 0644]

diff --git a/contrib/loco/include/loco/IR/FilterAxis.h b/contrib/loco/include/loco/IR/FilterAxis.h
new file mode 100644 (file)
index 0000000..269e2ae
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ */
+
+#ifndef __LOCO_IR_FILTER_AXIS_H__
+#define __LOCO_IR_FILTER_AXIS_H__
+
+namespace loco
+{
+
+enum class FilterAxis
+{
+  Count,
+  Depth,
+  Height,
+  Width
+};
+
+} // namespace loco
+
+#endif // __LOCO_IR_FILTER_AXIS_H__
diff --git a/contrib/loco/src/IR/FilterAxis.cpp b/contrib/loco/src/IR/FilterAxis.cpp
new file mode 100644 (file)
index 0000000..be4234e
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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 "loco/IR/FilterAxis.h"
+
+// NOTE This file validates "FilterAxis.h". Please DO NOT remove this file.