add_library(coco_core SHARED ${SOURCES})
target_include_directories(coco_core PUBLIC include)
-target_link_libraries(coco_core nncc_foundation)
target_link_libraries(coco_core nncc_core)
+# TODO Set this as PRIVATE dependency
+target_link_libraries(coco_core stdex)
nncc_find_package(GTest QUIET)
#include <nncc/core/ADT/kernel/NCHWLayout.h>
-#include <nncc/foundation/Memory.h>
-
#include <gtest/gtest.h>
#include <set>
using nncc::core::ADT::tensor::IndexEnumerator;
using nncc::core::ADT::tensor::num_elements;
-using nncc::foundation::make_unique;
-
//
// 'caffe_conv' test demonstrates how to translate the following Caffe network into coco IR:
//
#include "coco/IR/Read.h"
#include "coco/IR/Update.h"
-#include <nncc/foundation/Memory.h>
-
#include <cassert>
namespace coco
#include "coco/IR/BagManager.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
namespace coco
{
Bag *BagManager::create(uint32_t size)
{
- auto bag = nncc::foundation::make_unique<Bag>(size);
+ auto bag = stdex::make_unique<Bag>(size);
modulize(bag.get());
return take(std::move(bag));
}
#include "coco/IR/BlockManager.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <cassert>
Block *BlockManager::create(void)
{
- auto blk = nncc::foundation::make_unique<Block>();
+ auto blk = stdex::make_unique<Block>();
modulize(blk.get());
return take(std::move(blk));
}
#include <vector>
#include <memory>
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{
#include "coco/IR/FeatureObject.h"
-#include "nncc/foundation/Memory.h"
+#include <stdex/Memory.h>
#include "Producer.mock.h"
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{
#include "coco/IR/FeatureObject.h"
#include "coco/IR/FeatureLayouts.h"
-#include <nncc/foundation/Memory.h>
-
#include <vector>
#include <memory>
#include <gtest/gtest.h>
using namespace nncc::core::ADT;
-using nncc::foundation::make_unique;
namespace
{
#include "coco/IR/InputManager.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
namespace coco
{
Input *InputManager::create(const nncc::core::ADT::tensor::Shape &shape)
{
- auto input = nncc::foundation::make_unique<Input>(shape);
+ auto input = stdex::make_unique<Input>(shape);
modulize(input.get());
return take(std::move(input));
}
#include "coco/IR/Op.h"
-#include <nncc/foundation/Memory.h>
-
#include <cassert>
namespace coco
#include "coco/IR/KernelLayouts.h"
#include <nncc/core/ADT/kernel/NCHWLayout.h>
-#include <nncc/foundation/Memory.h>
-
-using nncc::foundation::make_unique;
namespace coco
{
#include "coco/IR/KernelObject.h"
-#include <nncc/foundation/Memory.h>
-
#include <vector>
#include <memory>
#include <gtest/gtest.h>
using namespace nncc::core::ADT;
-using nncc::foundation::make_unique;
namespace
{
#include "coco/IR/Module.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{
#include "coco/IR/Object.h"
#include "coco/IR/BagManager.h"
-#include <nncc/foundation/Memory.h>
-
#include <vector>
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
-
namespace
{
class ObjectTest : public ::testing::Test
#include "coco/IR/FeatureObject.h"
#include "coco/IR/KernelObject.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <cassert>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace coco
{
#include "coco/IR/OpManager.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <cassert>
#include <queue>
#include <set>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace coco
{
#include <vector>
#include <memory>
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
/**
* Section: Add Op
#include "coco/IR/OutputManager.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
namespace coco
{
Output *OutputManager::create(const nncc::core::ADT::tensor::Shape &shape)
{
- auto output = nncc::foundation::make_unique<Output>(shape);
+ auto output = stdex::make_unique<Output>(shape);
modulize(output.get());
return take(std::move(output));
}
#include "coco/IR/Part.h"
#include "coco/IR/Op.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{
#include "Consumer.mock.h"
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <gtest/gtest.h>
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{
add_library(coco_generic SHARED ${SOURCES})
target_include_directories(coco_generic PUBLIC include)
target_link_libraries(coco_generic coco_core)
+# TODO Set this as PRIVATE dependency
+target_link_libraries(coco_generic stdex)
nncc_find_package(GTest QUIET)
#include <nncc/core/ADT/kernel/NCHWLayout.h>
#include <nncc/core/ADT/kernel/Overlay.h>
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
#include <map>
using namespace nncc::core::ADT;
-using nncc::foundation::make_unique;
+using stdex::make_unique;
namespace
{