fps fix
This commit is contained in:
+6
-2
@@ -430,9 +430,13 @@ ILayer* NetworkRT::convert_layer(ITensor *input, Activation *l) {
|
|||||||
return lRT;
|
return lRT;
|
||||||
}
|
}
|
||||||
else if(l->act_mode == CUDNN_ACTIVATION_CLIPPED_RELU) {
|
else if(l->act_mode == CUDNN_ACTIVATION_CLIPPED_RELU) {
|
||||||
IPluginV2 *plugin = new ActivationReLUCeiling(l->ceiling);
|
IActivationLayer *lRT = networkRT->addActivation(*input,ActivationType::kCLIP);
|
||||||
IPluginV2Layer *lRT = networkRT->addPluginV2(&input, 1, *plugin);
|
//IPluginV2 *plugin = new ActivationReLUCeiling(l->ceiling);
|
||||||
|
lRT->setAlpha(0);
|
||||||
|
lRT->setBeta(l->ceiling);
|
||||||
checkNULL(lRT);
|
checkNULL(lRT);
|
||||||
|
//IPluginV2Layer *lRT = networkRT->addPluginV2(&input, 1, *plugin);
|
||||||
|
//checkNULL(lRT);
|
||||||
return lRT;
|
return lRT;
|
||||||
}
|
}
|
||||||
else if(l->act_mode == ACTIVATION_MISH) {
|
else if(l->act_mode == ACTIVATION_MISH) {
|
||||||
|
|||||||
Reference in New Issue
Block a user