--- /dev/null
+#ifndef __COCO_IR_FEATURE_OBJECT_FORWARD_H__
+#define __COCO_IR_FEATURE_OBJECT_FORWARD_H__
+
+namespace coco
+{
+
+class FeatureObject;
+
+} // namespace coco
+
+#endif // __COCO_IR_FEATURE_OBJECT_FORWARD_H__
--- /dev/null
+#ifndef __COCO_IR_KERNEL_OBJECT_FORWARD_H__
+#define __COCO_IR_KERNEL_OBJECT_FORWARD_H__
+
+namespace coco
+{
+
+class KernelObject;
+
+} // namespace coco
+
+#endif // __COCO_IR_KERNEL_OBJECT_FORWARD_H__
--- /dev/null
+#ifndef __COCO_IR_OBJECT_MANAGER_H__
+#define __COCO_IR_OBJECT_MANAGER_H__
+
+#include "coco/IR/Object.h"
+#include "coco/IR/FeatureObject.forward.h"
+#include "coco/IR/KernelObject.forward.h"
+
+#include "coco/ADT/PtrManager.h"
+
+#include <nncc/core/ADT/feature/Shape.h>
+#include <nncc/core/ADT/kernel/Shape.h>
+
+namespace coco
+{
+
+struct ObjectManager : public PtrManager<Object>
+{
+ FeatureObject *create(const nncc::core::ADT::feature::Shape &shape);
+ KernelObject *create(const nncc::core::ADT::kernel::Shape &shape);
+};
+
+} // namespace coco
+
+#endif // __COCO_IR_OBJECT_MANAGER_H__
--- /dev/null
+#include "coco/IR/ObjectManager.h"
+
+#include "coco/IR/FeatureObject.h"
+#include "coco/IR/KernelObject.h"
+
+#include <nncc/foundation/Memory.h>
+
+using nncc::foundation::make_unique;
+
+namespace coco
+{
+
+FeatureObject *ObjectManager::create(const nncc::core::ADT::feature::Shape &shape)
+{
+ return take(make_unique<FeatureObject>(shape));
+}
+
+KernelObject *ObjectManager::create(const nncc::core::ADT::kernel::Shape &shape)
+{
+ return take(make_unique<KernelObject>(shape));
+}
+
+} // namespace coco
--- /dev/null
+#include "coco/IR/ObjectManager.h"
+
+#include "coco/IR/FeatureObject.h"
+#include "coco/IR/KernelObject.h"
+
+#include <gtest/gtest.h>
+
+TEST(IR_OBJECT_MANAGER, create_feature)
+{
+ using nncc::core::ADT::feature::Shape;
+
+ const Shape shape{1, 3, 3};
+
+ coco::ObjectManager mgr;
+
+ auto o = mgr.create(shape);
+
+ ASSERT_EQ(o->shape(), shape);
+}
+
+TEST(IR_OBJECT_MANAGER, create_kernel)
+{
+ using nncc::core::ADT::kernel::Shape;
+
+ const Shape shape{1, 1, 3, 3};
+
+ coco::ObjectManager mgr;
+
+ auto o = mgr.create(shape);
+
+ ASSERT_EQ(o->shape().count(), shape.count());
+ ASSERT_EQ(o->shape().depth(), shape.depth());
+ ASSERT_EQ(o->shape().height(), shape.height());
+ ASSERT_EQ(o->shape().width(), shape.width());
+}