apex
apex copied to clipboard
Avoid importing apex transformer automatically
and make error message more clear when apex.transformer is explicitly called on unsupported platform
In some configurations, pytorch may not be built with distributed support. So we avoid the auto import of transformer, which calls torch.distributed api explicitly.