| 256 | } |
| 257 | |
| 258 | Status FunctionLibraryRuntimeOverlay::CreateKernel(const NodeDef&, OpKernel**) { |
| 259 | // We don't have access to base_lib_def_ in base function library runtime (aka |
| 260 | // FunctionLibraryRuntimeImpl), so to make sure we do not create a kernel with |
| 261 | // the wrong lib_def we just disable creation of new kernels through overlays. |
| 262 | // |
| 263 | // When we call Instantiate from the base runtime with the lib_def option, |
| 264 | // the base runtime implementation is responsible for correctly passing it |
| 265 | // through to all kernel constructions. |
| 266 | return errors::Internal( |
| 267 | "Overlay function library runtime doesn't support kernel creation."); |
| 268 | } |
| 269 | |
| 270 | bool FunctionLibraryRuntimeOverlay::IsStateful( |
| 271 | const string& function_name) const { |
no test coverage detected