Add models benchmarks
Add models benchmarks Minor fixes
This commit is contained in:
@@ -81,7 +81,7 @@ nvinfer1::ILayer* activationLayer(
|
||||
mish->setName(mishLayerName.c_str());
|
||||
output = mish;
|
||||
}
|
||||
else if (activation == "silu")
|
||||
else if (activation == "silu" || activation == "swish")
|
||||
{
|
||||
nvinfer1::IActivationLayer* sigmoid = network->addActivation(
|
||||
*input, nvinfer1::ActivationType::kSIGMOID);
|
||||
|
||||
@@ -14,6 +14,7 @@ nvinfer1::ILayer* convolutionalLayer(
|
||||
int& weightPtr,
|
||||
std::string weightsType,
|
||||
int& inputChannels,
|
||||
float eps,
|
||||
nvinfer1::ITensor* input,
|
||||
nvinfer1::INetworkDefinition* network)
|
||||
{
|
||||
@@ -156,7 +157,7 @@ nvinfer1::ILayer* convolutionalLayer(
|
||||
}
|
||||
for (int i = 0; i < filters; ++i)
|
||||
{
|
||||
bnRunningVar.push_back(sqrt(weights[weightPtr] + 1.0e-3));
|
||||
bnRunningVar.push_back(sqrt(weights[weightPtr] + eps));
|
||||
weightPtr++;
|
||||
}
|
||||
trtWeights.push_back(convWt);
|
||||
|
||||
@@ -21,6 +21,7 @@ nvinfer1::ILayer* convolutionalLayer(
|
||||
int& weightPtr,
|
||||
std::string weightsType,
|
||||
int& inputChannels,
|
||||
float eps,
|
||||
nvinfer1::ITensor* input,
|
||||
nvinfer1::INetworkDefinition* network);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user