*/
#include "coco/IR/FeatureObject.h"
-#include "coco/IR/FeatureLayouts.h"
-
-#include <nncc/core/ADT/feature/CHWLayout.h>
-#include <nncc/foundation/Memory.h>
#include <cassert>
-using nncc::foundation::make_unique;
-
namespace coco
{
-FeatureObject::FeatureObject(const nncc::core::ADT::feature::Shape &shape)
-{
- _layout = FeatureLayouts::Generic::create(shape);
-}
-
FeatureObject::~FeatureObject()
{
// DO NOTHING
*/
#include "coco/IR/FeatureObject.h"
+#include "coco/IR/FeatureLayouts.h"
#include <nncc/foundation/Memory.h>
class FeatureObjectTest : public ::testing::Test
{
protected:
+ // TODO Deprecate this method
coco::FeatureObject *allocate(const feature::Shape &shape)
{
- auto o = new coco::FeatureObject{shape};
+ auto o = new coco::FeatureObject{};
+ o->layout(coco::FeatureLayouts::Generic::create(shape));
_allocated.emplace_back(o);
return o;
}