From 92aa3253a5d51a9c06dd542fc336a96dc53d955c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Tue, 2 Oct 2018 16:01:40 +0900 Subject: [PATCH] [enco] Replace link with allocate (#1721) This commit replace deprecated methods such as Data::allocate and PlainWeightContext::link with PlainWeightContext::allocate. Signed-off-by: Jonghyun Park --- contrib/enco/frontend/caffe/src/Frontend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/enco/frontend/caffe/src/Frontend.cpp b/contrib/enco/frontend/caffe/src/Frontend.cpp index 4fd2dca..112e453 100644 --- a/contrib/enco/frontend/caffe/src/Frontend.cpp +++ b/contrib/enco/frontend/caffe/src/Frontend.cpp @@ -237,8 +237,7 @@ enco::Bundle Frontend::load(void) const ker_obj->layout(std::move(ker_layout)); // Create a kernel overlay for the kernel object - auto ker_id = d->allocate(num_elements(ker_shape) * sizeof(float)); - d->f32()->link(ker_id, ker_obj); + d->f32()->allocate(ker_obj); // Initialize the kernel overlay assert(blob_count(layer.name()) >= 1); -- 2.7.4