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]) #