The code that comes on the next page belongs to tensorflow 1 or tensorflow 2 :Introducción a los tensores | TensorFlow Core
Welcome to the TensorFlow Forum!
The above mentioned link provided by you is executable using TensorFlow 2.x
. TensorFlow 1.x
is not longer supported and deprecated to use. Thank you.