Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pr_curves_demo manually implement clip #1132

Merged
merged 3 commits into from
Apr 15, 2018

Conversation

chihuahua
Copy link
Member

TensorFlow commits tensorflow/tensorflow@083cf6b and tensorflow/tensorflow@daf0b20 have made their way into tf-nightly build 254. The commits modified the behavior of the tf.clip_by_value op in an attempt to resolve tensorflow/tensorflow#7225 in a way that minimizes memory usage by taking different pathways of logic based on characteristics of the system running TensorFlow. Unfortunately, our python 2 and python 3 setups on travis differ along those characteristics, causing the tf-nightly build to break :pr_curves_test (which relies on the demo to generate test data) for python 2 only.

This PR fixes the test by removing usages of tf.clip_by_value from the demo and instead uses tf.maximum(minValue, tf.minimum(maxValue, value)). The most fulfilling solution for this bug would be to resolve the mismatch in behavior of tf.clip_by_value on the TensorFlow side. However, this PR unblocks development of TensorBoard immediately.

TensorFlow commits tensorflow/tensorflow@083cf6b and tensorflow/tensorflow@daf0b20 have made their way into `tf-nightly` build 254. The commits modified the behavior of the `tf.clip_by_value` so that they ever so slightly vary based on system characteristics in an attempt I believe to minimize memory usage. Unfortunately, our python 2 and python 3 setups on travis differ along those characteristics, causing the `tf-nightly` build to break `:pr_curves_test` (which relies on the demo to generate test data) for python 2 only.

This PR fixes the test by removing usages of `tf.clip_by_value` from the
demo and instead uses `tf.maximum(minValue, tf.minimum(maxValue,
value))`. The most fulfilling solution for this bug would be to resolve
the mismatch in behavior of `tf.clip_by_value` on the TensorFlow side.
However, this PR unblocks development of TensorBoard immediately.
@chihuahua chihuahua merged commit b45b73c into tensorflow:master Apr 15, 2018
@chihuahua chihuahua deleted the curves branch April 15, 2018 05:56
chihuahua added a commit to chihuahua/tensorboard that referenced this pull request Apr 23, 2018
Previously, tensorflow#1132 had circumvented the use of `tf.clip_by_value` within the PR curves demo because it was buggy.

However, that behavior seems to have been fixed.
nfelt pushed a commit to nfelt/tensorboard that referenced this pull request Apr 24, 2018
TensorFlow commits tensorflow/tensorflow@083cf6b and tensorflow/tensorflow@daf0b20 have made their way into `tf-nightly` build 254. The commits modified the behavior of the `tf.clip_by_value` op in an attempt to resolve tensorflow/tensorflow#7225 in a way that minimizes memory usage by taking different pathways of logic based on characteristics of the system running TensorFlow. Unfortunately, our python 2 and python 3 setups on travis differ along those characteristics, causing the `tf-nightly` build to break `:pr_curves_test` (which relies on the demo to generate test data) for python 2 only.

This PR fixes the test by removing usages of `tf.clip_by_value` from the demo and instead uses `tf.maximum(minValue, tf.minimum(maxValue, value))`. The most fulfilling solution for this bug would be to resolve the mismatch in behavior of `tf.clip_by_value` on the TensorFlow side. However, this PR unblocks development of TensorBoard immediately.
nfelt pushed a commit that referenced this pull request Apr 24, 2018
TensorFlow commits tensorflow/tensorflow@083cf6b and tensorflow/tensorflow@daf0b20 have made their way into `tf-nightly` build 254. The commits modified the behavior of the `tf.clip_by_value` op in an attempt to resolve tensorflow/tensorflow#7225 in a way that minimizes memory usage by taking different pathways of logic based on characteristics of the system running TensorFlow. Unfortunately, our python 2 and python 3 setups on travis differ along those characteristics, causing the `tf-nightly` build to break `:pr_curves_test` (which relies on the demo to generate test data) for python 2 only.

This PR fixes the test by removing usages of `tf.clip_by_value` from the demo and instead uses `tf.maximum(minValue, tf.minimum(maxValue, value))`. The most fulfilling solution for this bug would be to resolve the mismatch in behavior of `tf.clip_by_value` on the TensorFlow side. However, this PR unblocks development of TensorBoard immediately.
nfelt pushed a commit that referenced this pull request Apr 26, 2018
Previously, #1132 had circumvented the use of `tf.clip_by_value` within the PR curves demo because it was buggy.

However, that behavior seems to have been fixed.
nfelt added a commit that referenced this pull request Apr 27, 2018
This addresses the root cause of the issue detected and originally addressed in #1132, per my description in #1150 (review).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: equivalent of np.clip
2 participants