I’ve been following an awesome DeOldify notebook and got the same error -
ValueError("Modules that have hooks assigned can't be compiled")
The reason for this was the tensorboard callback, which I didn’t need at the time.
So, commenting the
learn_gen.callback_fns.append(partial(ImageGenTensorboardWriter, base_dir=TENSORBOARD_PATH, name='GenPre')) line did the job for me.
Hope it can help someone who’s also trying this notebook’s approach.
Source: https://github.com/jantic/DeOldify