Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ Classifier::Classifier(const string& model_file,
Caffe::set_mode(Caffe::GPU);
#endif

#ifdef USE_ACL
AclEnableSchedule();
#endif
/* Load the network. */
net_.reset(new Net<float>(model_file, TEST));
net_->CopyTrainedLayersFrom(trained_file);
Expand Down
2 changes: 2 additions & 0 deletions include/caffe/layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ extern unsigned int acl_log_flags;
namespace boost { class mutex; }

namespace caffe {
#ifdef USE_ACL
bool AclEnableSchedule(int enable=1);
#endif
#ifdef USE_PROFILING
class logtime_util
{
Expand Down
5 changes: 4 additions & 1 deletion src/caffe/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ void GlobalInit(int* pargc, char*** pargv) {
#ifdef CPU_ONLY // CPU-only Caffe.

Caffe::Caffe()
: random_generator_(), mode_(Caffe::CPU),use_mali_gpu_(false),
: random_generator_(), mode_(Caffe::CPU),
#ifdef USE_ACL
use_mali_gpu_(false),
#endif
solver_count_(1), solver_rank_(0), multiprocess_(false)
{
}
Expand Down