From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 3 Jun 2019 23:53:33 +0000 (+0900) Subject: [loco] Introduce FilterAxis enum class (#3669) X-Git-Tag: nncc_backup~471 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cd3ff9929110406db42a67a842f36c04b32d92e;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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.