You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] reduce_logsumexp examples do not work in 0.11.0rc1 #5291
changed the title [-]reduce_logsumexp examples do not work in 0.11.0rc1[/-][+][Bug] reduce_logsumexp examples do not work in 0.11.0rc1[/+]on Oct 30, 2016
...lib/python2.7/site-packages/tensorflow/python/ops/math_ops.pyc in reduce_logsumexp(input_tensor, reduction_indices, keep_dims, name)
1293 keep_dims=True)) + my_max
1294 if not keep_dims:
-> 1295 result = array_ops.squeeze(result, reduction_indices)
1296 return result
1297
...lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.pyc in squeeze(input, squeeze_dims, name)
2644 """
2645 result = _op_def_lib.apply_op("Squeeze", input=input,
-> 2646 squeeze_dims=squeeze_dims, name=name)
2647 return result
2648
...lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.pyc in apply_op(self, op_type_name, name, **keywords)
636 if attr_def.type.startswith("list("):
637 if not _IsListValue(value):
--> 638 raise TypeError("Expected list for attr " + key)
639 if attr_def.has_minimum:
640 if len(value) < attr_def.minimum:
TypeError: Expected list for attr squeeze_dims
Activity
drpngx commentedon Oct 30, 2016
Nice find! So you mean we should use
0.0etc? Feel free to send a PR for the docs.hoangmit commentedon Oct 30, 2016
No. I mean this is a bug. Currently,
tf.reduce_logsumexp(x, 0)crashes. It should return the result in the doc.[-]reduce_logsumexp examples do not work in 0.11.0rc1[/-][+][Bug] reduce_logsumexp examples do not work in 0.11.0rc1[/+]drpngx commentedon Oct 31, 2016
Does it crash or return an error?
hoangmit commentedon Oct 31, 2016
It returns an error:
drpngx commentedon Oct 31, 2016
Oh, you can't send a list directly, you have to construct a tensor, for instance, with
zero_initializer.hoangmit commentedon Oct 31, 2016
It is not the problem with the input. (e.g.# 'x' is [[0, 0, 0], [0, 0, 0]])
I did construct a tensor and pass it in.
The problem is at line 1295 in file "tensorflow/python/ops/math_ops.py".
array_ops.squeezedoes not take integer as the 2nd parameter.drpngx commentedon Oct 31, 2016
Ah, ok, thanks! Feel free to submit a PR with doc changes.
Update tensorflow#5291
reduce_logsumexp fix for reduction_indices. Fixes issue #5291 (#5292)
Update from original Nov 14 (#1)