Remove designated initializers

PiperOrigin-RevId: 540471772
This commit is contained in:
MediaPipe Team 2023-06-14 22:14:51 -07:00 committed by Copybara-Service
parent e02d70f8e5
commit 2e48a0bce0

View File

@ -58,7 +58,8 @@ TfLiteRegistration* RegisterMaxPoolingWithArgmax2D() {
}); });
return r; return r;
}(); }();
static TfLiteRegistration reg = {.registration_external = reg_external}; static TfLiteRegistration reg{};
reg.registration_external = reg_external;
return ® return ®
} }
@ -68,7 +69,8 @@ TfLiteRegistration* RegisterMaxUnpooling2D() {
TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom, TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom,
kMaxUnpooling2DOpName, kMaxUnpooling2DOpName,
kMaxUnpooling2DOpVersion); kMaxUnpooling2DOpVersion);
static TfLiteRegistration reg = {.registration_external = reg_external}; static TfLiteRegistration reg{};
reg.registration_external = reg_external;
return ® return ®
} }
@ -78,7 +80,8 @@ TfLiteRegistration* RegisterConvolution2DTransposeBias() {
TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom, TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom,
kConvolution2DTransposeBiasOpName, kConvolution2DTransposeBiasOpName,
kConvolution2DTransposeBiasOpVersion); kConvolution2DTransposeBiasOpVersion);
static TfLiteRegistration reg = {.registration_external = reg_external}; static TfLiteRegistration reg{};
reg.registration_external = reg_external;
return ® return ®
} }