projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ecd94
)
[tf.data] Fix logging ops debug statement.
author
joel-shor
<joelshor@google.com>
Mon, 30 Apr 2018 09:20:20 +0000
(12:20 +0300)
committer
joel-shor
<joelshor@google.com>
Mon, 30 Apr 2018 09:20:20 +0000
(12:20 +0300)
tensorflow/contrib/data/python/ops/resampling.py
patch
|
blob
|
history
diff --git
a/tensorflow/contrib/data/python/ops/resampling.py
b/tensorflow/contrib/data/python/ops/resampling.py
index
47bf6ec
..
6be4198
100644
(file)
--- a/
tensorflow/contrib/data/python/ops/resampling.py
+++ b/
tensorflow/contrib/data/python/ops/resampling.py
@@
-152,7
+152,7
@@
def _filter_ds(dataset, acceptance_dist_ds, initial_dist_ds, class_values_ds,
return control_flow_ops.cond(
math_ops.less(proportion_rejected, .5),
lambda: accept_dist,
- lambda: logging_ops.
logging.warn
( # pylint: disable=g-long-lambda
+ lambda: logging_ops.
Print
( # pylint: disable=g-long-lambda
accept_dist, [proportion_rejected, initial_dist, accept_dist],
message="Proportion of examples rejected by sampler is high: ",
summarize=100,