import tensorflow as tf
mat = tf.constant([[12,23,34,65], [2,25,1,8], [5,7,78,12],[95,21,47,20]])
print(mat)
matmax = tf.math.reduce_max(mat, axis = 1)
print(matmax)
vtr1 = tf.constant([[2,5,1], [7,12,4], [19,15,6]])
vtr2 = tf.constant([[13,4,11], [67,23,45], [71,11,10]])
vtr3=vtr1 + vtr2
print(vtr3)
vtr4 = tf.constant([[12,23],[34,45], [56,67]])
list1 = [[5,12], [34,1],[6,7]]
vtr5 = vtr4 + list1
print(vtr5)
aW1wb3J0IHRlbnNvcmZsb3cgYXMgdGYKCm1hdCA9IHRmLmNvbnN0YW50KFtbMTIsMjMsMzQsNjVdLCBbMiwyNSwxLDhdLCBbNSw3LDc4LDEyXSxbOTUsMjEsNDcsMjBdXSkKCnByaW50KG1hdCkKCm1hdG1heCA9IHRmLm1hdGgucmVkdWNlX21heChtYXQsIGF4aXMgPSAxKQoKcHJpbnQobWF0bWF4KQoKdnRyMSA9IHRmLmNvbnN0YW50KFtbMiw1LDFdLCBbNywxMiw0XSwgWzE5LDE1LDZdXSkKCnZ0cjIgPSB0Zi5jb25zdGFudChbWzEzLDQsMTFdLCBbNjcsMjMsNDVdLCBbNzEsMTEsMTBdXSkKCnZ0cjM9dnRyMSArIHZ0cjIKCnByaW50KHZ0cjMpCgp2dHI0ID0gdGYuY29uc3RhbnQoW1sxMiwyM10sWzM0LDQ1XSwgWzU2LDY3XV0pCgpsaXN0MSA9IFtbNSwxMl0sIFszNCwxXSxbNiw3XV0KCnZ0cjUgPSB2dHI0ICsgbGlzdDEKCnByaW50KHZ0cjUp