message: Fix for failing eager:function_test
diff: @@ -100,9 +100,9 @@ class PartitionedCallOp : public AsyncOpKernel {
  // We need to pass global op_registry as default_registry when creating
  // graph. So that graph optimization passes can lookup all possible ops
  // by name.
  - FunctionLibraryDefinition func_lib_def(
  - OpRegistry::Global(), fbody->graph->flib_def().ToProto());
  - auto graph = tensorflow::MakeUnique<Graph>(func_lib_def);
  + auto graph = tensorflow::MakeUnique<Graph>(fbody->graph->flib_def());
  + FunctionLibraryDefinition global_flib(OpRegistry::Global(), {});
  + graph.get()->AddFunctionLibrary(global_flib.ToProto());
  CopyGraph(*fbody->graph, graph.get());
  OP_REQUIRES_OK_ASYNC(ctx, PinResourceArgs(graph.get(), args), done);
  @@ -255,10 +255,10 @@ class PartitionedCallOp : public AsyncOpKernel {
  VLOG(3) << "Partitioned function '" << func_.name() << "', yielding "
  << partitions.size() << " shards.";
  - FunctionLibraryDefinition func_lib_def(OpRegistry::Global(),
  - graph->flib_def().ToProto());
  for (const auto& partition : partitions) {
  - std::unique_ptr<Graph> subgraph(new Graph(func_lib_def));
  + std::unique_ptr<Graph> subgraph(new Graph(graph->flib_def()));
  + FunctionLibraryDefinition global_flib(OpRegistry::Global(), {});
  + subgraph.get()->AddFunctionLibrary(global_flib.ToProto());
  GraphConstructorOptions opts;
  opts.allow_internal_ops = true;
  opts.expect_device_spec = true;
  