Auto detect tensorflow-intel as tensorflow (there is no tensorflow-intel package)

This commit is contained in:
allegroai 2024-01-06 12:32:57 +02:00
parent 4bd6b20a62
commit 0ed5ff4123

View File

@ -97,6 +97,11 @@ class ScriptRequirements(object):
for fname, lines in skimage.items(): for fname, lines in skimage.items():
modules.add('scikit_image', fname, lines) modules.add('scikit_image', fname, lines)
if 'tensorflow-intel' in modules:
tfmodule = modules.pop('tensorflow-intel', {})
for fname, lines in tfmodule.items():
modules.add('tensorflow', fname, lines)
# if we have torch and it supports tensorboard, we should add that as well # if we have torch and it supports tensorboard, we should add that as well
# (because it will not be detected automatically) # (because it will not be detected automatically)
if 'torch' in modules and 'tensorboard' not in modules and 'tensorboardX' not in modules: if 'torch' in modules and 'tensorboard' not in modules and 'tensorboardX' not in modules: