registerWithOptions static method
Registers the Convolution2DTransposeBias custom op with the given interpreter options.
Call this before creating an interpreter for models that use this op.
Implementation
static void registerWithOptions(Pointer<TfLiteInterpreterOptions> options) {
if (_registration == null) {
loadLibrary();
}
if (_registration == null) {
throw StateError('Custom op registration not available');
}
_opName ??= 'Convolution2DTransposeBias'.toNativeUtf8().cast<Char>();
tfliteBinding.TfLiteInterpreterOptionsAddCustomOp(
options,
_opName!,
_registration!,
1, // min_version
1, // max_version
);
_isRegistered = true;
}