FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

revised an compatibility issue with the new ACL 17.09 version. Docume… · hexujun/CaffeOnACL@c298116 · GitHub

Repository navigation

Commit c298116

Browse files
committed
revised an compatibility issue with the new ACL 17.09 version. Documents will be updated later on
1 parent a7de0cf commit c298116

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/caffe/acl_layer.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int BaseTensor<ACLTensor>::tensor_copy(void * mem,bool toTensor)
116116
#endif //USE_PROFILING
117117
arm_compute::Window window;
118118
ACLTensor* tensor=this;
119-
window.use_tensor_dimensions(tensor->info(), /* first_dimension =*/Window::DimY); // Iterate through the rows (not each element)
119+
window.use_tensor_dimensions(tensor->info()->tensor_shape(), /* first_dimension =*/Window::DimY); // Iterate through the rows (not each element)
120120
int width = tensor->info()->tensor_shape()[0]; //->dimension(0); //window.x().end() - window.x().start(); // + 1;
121121
int height = tensor->info()->tensor_shape()[1]; //->dimension(1); //window.y().end() - window.y().start(); // + 1;
122122
int deepth = tensor->info()->tensor_shape()[2];

‎src/caffe/layers/acl_batch_norm_layer.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ void ACLBatchNormLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
115115
Forward_gpu(bottom, top);
116116
return;
117117
}
118+
#ifdef USE_PROFILING
119+
logtime_util log_time(ACL_BN_INFO);
120+
#endif //USE_PROFILING
118121
if (this->force_bypass_acl_path_||!this->use_global_stats_) {
119122
BatchNormLayer<Dtype>::Forward_cpu(bottom,top);
120123
return;
121124
}
122-
#ifdef USE_PROFILING
123-
logtime_util log_time(ACL_BN_INFO);
124-
#endif //USE_PROFILING
125125
const Dtype* bottom_data = bottom[0]->cpu_data();
126126
Dtype* top_data = top[0]->mutable_cpu_data();
127127
SetupACLLayer(bottom,top);

‎src/caffe/layers/acl_concat_layer.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void ACLConcatLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom,
113113

114114
template <typename Dtype>
115115
ACLConcatLayer<Dtype>::~ACLConcatLayer() {
116+
if(this->force_bypass_acl_path_)return;
116117
for (int i =0; i < cpu_vectors.size(); i ++) {
117118
delete cpu_vectors[i];
118119
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL