Network-aware device placement search for distributed training