[tf.data] Just replace old resample with new.
authorjoel-shor <joelshor@google.com>
Thu, 26 Apr 2018 23:21:44 +0000 (02:21 +0300)
committerjoel-shor <joelshor@google.com>
Thu, 26 Apr 2018 23:21:44 +0000 (02:21 +0300)
commit81a34fb835e8389dd2523335c5d186405294f95e
tree4d402b775f6cfa085096e3d4ea2c50bd9b19433f
parenta10708db0d587831cafcb2e7dbdcbbcf11aede95
[tf.data] Just replace old resample with new.

Also, add an optimization / bug fix that shortcircuits combining the two datasets if one should always be sampled from.

Tested:

bazel test :resample_test
tensorflow/contrib/data/python/kernel_tests/resample_test.py
tensorflow/contrib/data/python/ops/resampling.py