aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/function_threadpool_test.cc
Commit message (Collapse)AuthorAge
* Remove unused inclusionsGravatar A. Unique TensorFlower2018-05-16
| | | | PiperOrigin-RevId: 196906815
* [Functions] Fix unbounded memory growth in FunctionLibraryRuntime.Gravatar Derek Murray2018-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change modified the behavior of `FunctionLibraryRuntimeImpl::ReleaseHandle()` so that it no longer freed the memory associated with an instantiated function. Since we rely on instantiating and releasing a potentially large number of instances of the same function in tf.data to isolate the (e.g. random number generator) state in each instance, this change meant that the memory consumption could grow without bound in a simple program like: ```python ds = tf.data.Dataset.from_tensors(0).repeat(None) # The function `lambda y: y + 1` would be instantiated for each element in the input. ds = ds.flat_map(lambda x: tf.data.Dataset.from_tensors(x).map( lambda y: y + tf.random_uniform([], minval=0, maxval=10, dtype=tf.int32))) iterator = ds.make_one_shot_iterator() next_elem = iterator.get_next() with tf.Session() as sess: while True: sess.run(next_elem) ``` PiperOrigin-RevId: 195983977
* Change refs/unrefs of FLR.Gravatar A. Unique TensorFlower2018-04-22
| | | | PiperOrigin-RevId: 193843055
* Replaced calls to deprecated tensorflow::StringPiece methods with theirGravatar A. Unique TensorFlower2018-04-02
| | | | | | | | tensorflow::str_util equivalents. This will allow the deprecated methods to be removed. PiperOrigin-RevId: 191316903
* Fix flakiness in common_runtime/function_test.cc.Gravatar Derek Murray2018-03-09
The flakiness was due to nondeterministic names being chosen for folded constants; the fix was to split out the source of the nondetermism into a separate test. PiperOrigin-RevId: 188565362