message: Enable function inlining in eagerly executed functions.
diff: @@ -142,6 +142,15 @@ Status KernelAndDeviceFunc::Init(const NodeDef& ndef,
  #endif
  options.graph_collector = graph_collector;
  + // In Eager mode we always inline all functions into the top-level
  + // function body graph, to get a single executable graph, that could be
  + // optimized across function boundaries (e.g. prune unused inputs and outputs
  + // in a function call chain). This is required to mimic graph mode execution,
  + // with aggressive pruning of nodes not in the transitive fanin of fetches.
  + options.config_proto.mutable_graph_options()
  + ->mutable_optimizer_options()
  + ->set_do_function_inlining(true);
  +
  TF_RETURN_IF_ERROR(
  pflr_->Instantiate(ndef.op(), AttrSlice(ndef), options, &handle_));
  return pflr_->GetOutputDevices(handle_, &output_devices_);
  