Name 'Tensor' is not defined

i am sure that i corretly import all libraries.