Skip to content

Commit

Permalink
fix: update caffe cudnn engine without template
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and sileht committed Oct 1, 2020
1 parent 75accc6 commit ca58c51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backends/caffe/caffelib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,9 @@ namespace dd
}
else // model template instantiation is defered until training call
{
#ifdef USE_CUDNN
update_protofile_engine(ad);
#endif
create_model(true);
}

Expand Down Expand Up @@ -4164,6 +4167,8 @@ namespace dd
{

std::string deploy_file = this->_mlmodel._repo + "/deploy.prototxt";
if (!fileops::file_exists(deploy_file))
return;
caffe::NetParameter deploy_net_param;
caffe::ReadProtoFromTextFile(deploy_file, &deploy_net_param);
update_protofile_engine(deploy_net_param, ad);
Expand Down

0 comments on commit ca58c51

Please sign in to comment.