[enco] Replace link with allocate (#1721)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 2 Oct 2018 07:01:40 +0000 (16:01 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 2 Oct 2018 07:01:40 +0000 (16:01 +0900)
This commit replace deprecated methods such as Data::allocate and
PlainWeightContext<T>::link with PlainWeightContext<T>::allocate.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/frontend/caffe/src/Frontend.cpp

index 4fd2dca..112e453 100644 (file)
@@ -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);