spec Deprecation warnings
#9105
-
|
As I was building a package, I noticed these Deprecation warnings I understand this is not an issue with the program or the build per se, but unsure if this could be related to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
When I run the program, this is what I get |
Beta Was this translation helpful? Give feedback.
-
No, these warnings are because before we look for dynamic libraries, we import all packages that we are going to collect, to automatically detect library search path modifications that some packages do. And some of these imported packages are deprecated. If you know that they are not used, you could explicitly exclude them from the program, for example But generally, these are not an issue and can be ignored. Perhaps we can suppress deprecation warnings before starting the imports on our side...
This one is because |
Beta Was this translation helpful? Give feedback.

No, these warnings are because before we look for dynamic libraries, we import all packages that we are going to collect, to automatically detect library search path modifications that some packages do. And some of these imported packages are deprecated. If you know that they are not used, you could explicitly exclude them from the program, for example
--exclude torch.distributed._sharding_spec. Then it will not be imported before library search either, and will not trigger deprecation warning.But generally…