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
import tensorflow as tf
dims = tf.placeholder(tf.bool)
tensor = tf.placeholder(tf.int32)
result = tf.reverse(tensor, dims)
print(result.get_shape())
Stack trace
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/contrib/immediate/python/immediate/env_extra_test.py", line 39, in testReverse
result = tf.reverse(tensor, dims)
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/ops/gen_array_ops.py", line 1405, in reverse
name=name)
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/ops/op_def_library.py", line 704, in apply_op
op_def=op_def)
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/framework/ops.py", line 2251, in create_op
set_shapes_for_outputs(ret)
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/framework/ops.py", line 1696, in set_shapes_for_outputs
shapes = shape_func(op)
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/ops/array_ops.py", line 631, in _ReverseShape
input_shape = op.inputs[0].get_shape().with_rank(dims_shape[0])
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/framework/tensor_shape.py", line 639, in with_rank
return self.merge_with(unknown_shape(ndims=rank))
File "/Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/framework/tensor_shape.py", line 816, in unknown_shape
return TensorShape([Dimension(None)] * ndims)
TypeError: __index__ returned non-(int,long) (type NoneType)
> /Users/yaroslavvb/tfimmediate_macbook/tensorflow/bazel-bin/tensorflow/contrib/immediate/env_extra_test.runfiles/org_tensorflow/tensorflow/python/framework/tensor_shape.py(816)unknown_shape()
-> return TensorShape([Dimension(None)] * ndims)
The text was updated successfully, but these errors were encountered:
@mrry@girving@ry hi merry, sorry to bother you. It seems that the problem still occurs in the latest tensorflow 1.2.1. I run the code provided by @yaroslavvb and get the errors.
I use ubuntu 14.04 , tensorflow-gpu 1.2.1, titianx-black
This crashes
Stack trace
The text was updated successfully, but these errors were encountered: