Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = tf.constant([[1,2],[3,4]])
- row_to_add = tf.constant([[1, 1]])
- updated_row = a[0]+row_to_add
- updated_a = tf.concat(0, [updated_row, a[1:]])
- sess.run(updated_a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement