From 1cd3ff9929110406db42a67a842f36c04b32d92e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 4 Jun 2019 08:53:33 +0900 Subject: [PATCH] [loco] Introduce FilterAxis enum class (#3669) This commit introduces FilterAxis enum class which denotes the name of each axis of any convolutional filter data. Signed-off-by: Jonghyun Park --- contrib/loco/include/loco/IR/FilterAxis.h | 33 +++++++++++++++++++++++++++++++ contrib/loco/src/IR/FilterAxis.cpp | 19 ++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 contrib/loco/include/loco/IR/FilterAxis.h create mode 100644 contrib/loco/src/IR/FilterAxis.cpp diff --git a/contrib/loco/include/loco/IR/FilterAxis.h b/contrib/loco/include/loco/IR/FilterAxis.h new file mode 100644 index 0000000..269e2ae --- /dev/null +++ b/contrib/loco/include/loco/IR/FilterAxis.h @@ -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 index 0000000..be4234e --- /dev/null +++ b/contrib/loco/src/IR/FilterAxis.cpp @@ -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. -- 2.7.4