Open eliphatfs opened 4 years ago
Hey @strongrex2001, I'm very sorry for big delay in commenting about your suggestion (I totally missed this issue). Is it ok if for now we simply add this line
spc.__umr__.namelist += \
list(filter(lambda x: x.startswith("tmp"), sys.modules.keys()))
and later consider how to implement the ability to exclude modules from our UMR using regexp's?
Sorry for my delay in reply, and.. no, since we only have the modules generated after tensorflow is run, and when umr is initialized there is no such tmp module in sys.modules.
I turned here from a TensorFlow issue related with Spyder. I copy my contents there, together with an analysis.
Output:
Appending the following code, the warning disappears:
In umr.py where the User Module Reloader is defined, there is a blocklist which may cause issues with the reloader and won't be reloaded. Here tf.function temporary modules are in a name starting with
tmp
, which may be a characteristic to match with.My suggestions: Either
Or
tmp
prefix and exclude from the reloading process.