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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -