mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 21:52:49 +00:00
cuDNNのdllがない環境でGPUモードで実行すると強制終了するバグを修正
This commit is contained in:
parent
7f15cd6fb4
commit
2ea99797c6
@ -362,6 +362,13 @@ Waifu2x::eWaifu2xError cNet::SetParameter(caffe::NetParameter ¶m, const std:
|
|||||||
else
|
else
|
||||||
layer_param->mutable_convolution_param()->set_engine(caffe::ConvolutionParameter_Engine_CAFFE);
|
layer_param->mutable_convolution_param()->set_engine(caffe::ConvolutionParameter_Engine_CAFFE);
|
||||||
}
|
}
|
||||||
|
else if (type == "Deconvolution")
|
||||||
|
{
|
||||||
|
if (process == "cudnn")
|
||||||
|
layer_param->mutable_convolution_param()->set_engine(caffe::ConvolutionParameter_Engine_CUDNN);
|
||||||
|
else
|
||||||
|
layer_param->mutable_convolution_param()->set_engine(caffe::ConvolutionParameter_Engine_CAFFE);
|
||||||
|
}
|
||||||
else if (type == "ReLU")
|
else if (type == "ReLU")
|
||||||
{
|
{
|
||||||
if (process == "cudnn")
|
if (process == "cudnn")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user