javirk/Dino-AI

no attribute named session

finnthenerferyt opened this issue · 0 comments

my command line output

(base) C:\Users\finnx\Dino-AI>python Main.py
2021-06-07 11:07:49.704221: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-06-07 11:07:49.704373: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
0
Traceback (most recent call last):
  File "Main.py", line 27, in <module>
    genome = Genome(numGenes, mutationProb, selection, folder,  nGenerations)
  File "C:\Users\finnx\Dino-AI\genome.py", line 31, in __init__
    self.build_genome()
  File "C:\Users\finnx\Dino-AI\genome.py", line 37, in build_genome
    network = Perceptron(self.folder, len(self.genes))
  File "C:\Users\finnx\Dino-AI\perceptron_2l.py", line 24, in __init__
    sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True))
AttributeError: module 'tensorflow' has no attribute 'Session'

help!