Skip to content

no attribute named session #2

@finnthenerferyt

Description

@finnthenerferyt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions