Fixed FP16 crashing
- None of the custom layers support anything than FP32 with default format, so I changed the support function to reflect that. Many of the layers could be optimized if F16 was actually supported. Especially for big ones like MISH activation.
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
|
||||
// Extra IPluginV2 overrides
|
||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
||||
return true;
|
||||
return (type == nvinfer1::DataType::kFLOAT && format == nvinfer1::PluginFormat::kLINEAR);
|
||||
}
|
||||
|
||||
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||
|
||||
Reference in New Issue
Block a user