added assert for supportsFormat in plugins

This commit is contained in:
perseusdg
2021-11-10 14:37:16 +05:30
parent 936b680f2f
commit 7dd33cd118
12 changed files with 12 additions and 16 deletions
+1 -2
View File
@@ -76,8 +76,7 @@ void ReshapeRT::serialize(void *buffer) const NOEXCEPT {
}
bool ReshapeRT::supportsFormat(DataType type, PluginFormat format) const NOEXCEPT {
return true;
//todo assert
return (type == DataType::kFLOAT && format == PluginFormat::kLINEAR);
}
const char *ReshapeRT::getPluginType() const NOEXCEPT {