这是代码:
model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1)
history = model.fit(train_images, train_labels,
epochs=15,
validation_data=(test_images, test_labels),
callbacks=[tensorboard_callback])
结果:
我可以在该火车目录中看到两个文件:
events.out.tfevents.1577049201.HOSTNAME.29520.368.v2
events.out.tfevents.1577049203.HOSTNAME.profile-empty
我在做什么错了?