| 216 | FunctionLibraryRuntimeOverlay::~FunctionLibraryRuntimeOverlay() = default; |
| 217 | |
| 218 | Status FunctionLibraryRuntimeOverlay::Instantiate( |
| 219 | const string& function_name, AttrSlice attrs, |
| 220 | const InstantiateOptions& options, Handle* handle) { |
| 221 | // We automatically set the `lib_def` option for all instantiations, if the |
| 222 | // caller doesn't set this option explicitly. |
| 223 | if (!options.lib_def && lib_def_) { |
| 224 | InstantiateOptions options_copy = options; |
| 225 | options_copy.lib_def = lib_def_; |
| 226 | return base_flr_->Instantiate(function_name, attrs, options_copy, handle); |
| 227 | } else { |
| 228 | return base_flr_->Instantiate(function_name, attrs, options, handle); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | Status FunctionLibraryRuntimeOverlay::ReleaseHandle(Handle handle) { |
| 233 | return base_flr_->ReleaseHandle(handle); |