Use TensorBoard with Keras Tuner
问题 I ran into an apparent circular dependency trying to use log data for TensorBoard during a hyper-parameter search done with Keras Tuner, for a model built with TF2. The typical setup for the latter needs to set up the Tensorboard callback in the tuner's search() method, which wraps the model's fit() method. from kerastuner.tuners import RandomSearch tuner = RandomSearch(build_model, #this method builds the model hyperparameters=hp, objective='val_accuracy') tuner.search(x=train_x, y=train_y,