Getting rid of the threadpool from FunctionBufferingResource. It wasn't really servin...
authorRohan Jain <rohanj@google.com>
Fri, 30 Mar 2018 01:18:28 +0000 (18:18 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 30 Mar 2018 01:21:02 +0000 (18:21 -0700)
commit36c2d9a2808daea7ea84d2bc1e5eb9fcf06999f7
tree989b82dc88417eb58b149d8c0cb9e61f6ac2af2e
parentac39aec50ff359ae915d13a011fdb905b8c48af0
Getting rid of the threadpool from FunctionBufferingResource. It wasn't really serving much purpose apart from moving all the function logic execution onto those threads and making the destruction of the resource quite complicated.

PiperOrigin-RevId: 191017836
14 files changed:
tensorflow/contrib/data/kernels/prefetching_kernels.cc
tensorflow/contrib/data/ops/dataset_ops.cc
tensorflow/contrib/data/python/kernel_tests/prefetching_ops_test.py
tensorflow/contrib/data/python/ops/prefetching_ops.py
tensorflow/contrib/distribute/python/prefetching_ops_v2.py
tensorflow/contrib/eager/python/datasets.py
tensorflow/core/BUILD
tensorflow/core/common_runtime/direct_session.cc
tensorflow/core/common_runtime/eager/context.cc
tensorflow/core/common_runtime/eager/context.h
tensorflow/core/common_runtime/function.cc
tensorflow/core/common_runtime/process_util.cc
tensorflow/core/common_runtime/process_util.h
tensorflow/core/common_runtime/process_util_test.cc [new file with mode: 0644]