python - How can I access each elements in tensor? -
let me assume have tensor like
test = tf.constant([1,2,3],[4,5,6],[7,8,9])
i want value(not row or col) in tensor. how can this? want (2,3) value 6 in here.
also want in multi-dimensional array.
'slice' or other tensor functions not fit me because want deal multi dimensional array(not 2x2 2x3x4x10 etc..)
please help
what want tf.gather or tf.gather_nd
Comments
Post a Comment