fix trt instance_norm serialize bug. test=develop (#22152)

release/1.7
Pei Yang 6 years ago committed by GitHub
parent cc1a9f4238
commit d8a9b134e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,7 +41,8 @@ class InstanceNormPlugin : public PluginTensorRT {
protected:
size_t getSerializationSize() override {
return getBaseSerializationSize() + SerializedSize(eps_) +
SerializedSize(scale_) + SerializedSize(bias_);
SerializedSize(scale_) + SerializedSize(bias_) +
SerializedSize(getPluginType());
}
// TRT will call this func when we need to serialize the configuration of

Loading…
Cancel
Save