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
I want to assign values in a tensor according to the indices.
For example, According to the pooling values and the corresponding indices output of tf.nn.max_pool_with_argmax, I want to put these pooling values back into the original unpooling Tensor given the indices.
According to the trick in Adjust Single Value within Tensor — TensorFlow
I can recreate sparse tensor with the indices.
But here is the problem: tf.SparseTensor should input the unflattened indices i.e. the ndims coordinates list.
If I use this method, how to unravel the flattened indices obtained by tf.nn.max_pool_with_argmax to the normal indices?
If I do not use this method, is there any way in Tensorflow to achieve this work?
Thank you very much.
The text was updated successfully, but these errors were encountered:
I want to assign values in a tensor according to the indices.
For example, According to the pooling values and the corresponding indices output of
tf.nn.max_pool_with_argmax
, I want to put these pooling values back into the original unpooling Tensor given the indices.According to the trick in Adjust Single Value within Tensor — TensorFlow
I can recreate sparse tensor with the indices.
But here is the problem:
tf.SparseTensor
should input the unflattened indices i.e. the ndims coordinates list.If I use this method, how to unravel the flattened indices obtained by
tf.nn.max_pool_with_argmax
to the normal indices?If I do not use this method, is there any way in Tensorflow to achieve this work?
Thank you very much.
The text was updated successfully, but these errors were encountered: