Skip to content
Open
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
2 changes: 0 additions & 2 deletions loadcaffe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,15 +561,13 @@ void convertProtoToLuaV2(const caffe::NetParameter &netparam, const char* lua_na
lines.emplace_back(layer.name(), "cudnn.SoftMax()");
else
lines.emplace_back(layer.name(), "nn.SoftMax()");
break;
}
if(layer.type()=="Softmax")
{
if(std::string(cuda_package) == "cudnn")
lines.emplace_back(layer.name(), "cudnn.SoftMax()");
else
lines.emplace_back(layer.name(), "nn.SoftMax()");
break;
}

if(!lines.empty())
Expand Down