Added TensorRT8 support #270
@@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ public:
|
|||||||
|
|
||||||
// Extra IPluginV2 overrides
|
// Extra IPluginV2 overrides
|
||||||
bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const noexcept override {
|
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 {
|
nvinfer1::IPluginV2 * clone() const noexcept override {
|
||||||
|
|||||||
Reference in New Issue
Block a user