Abrufen eines Fehlers "AttributeError: Modul 'TensorFlow.python.distribute.input_Lib' hat kein Attribut 'DistributedDataPython

Python-Programme
Anonymous
 Abrufen eines Fehlers "AttributeError: Modul 'TensorFlow.python.distribute.input_Lib' hat kein Attribut 'DistributedData

Post by Anonymous »

Nach dem Ausführen des Codes < /p>

Code: Select all

train(train_data, EPOCHS)
< /code>
Ich erhalte Fehler "AttributeError: Modul 'TensorFlow.python.distribute.input_Lib' hat kein Attribut 'DistributedDatasETinterface'" < /p>
und nach dem Schlepptau des Fehlers zeigt er in Zeile 15-> von < /p>

< />
< />
def train(data, EPOCHS):
# Loop through epochs
for epoch in range(1, EPOCHS+1):
print('\n Epoch {}/{}'.format(epoch, EPOCHS))
progbar = tf.keras.utils.Progbar(len(data))

# Creating a metric object
r = Recall()
p = Precision()

# Loop through each batch
for idx, batch in enumerate(data):
# Run train step here
loss = train_step(batch)
yhat = siamese_model.predict(batch[:2])  #

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post