python2中unicode string literal兼容
Created by: Meiyim
为了保证代码在python2/3环境下的兼容性。通常会在python2 中将所有字符串转为unicode处理。导致一下两处检查无法通过。
https://github.com/PaddlePaddle/Paddle/blob/853f2e5272ce3a52cf96c818d64c8274307be8d0/python/paddle/fluid/transpiler/distribute_transpiler.py#L411 https://github.com/PaddlePaddle/Paddle/blob/853f2e5272ce3a52cf96c818d64c8274307be8d0/python/paddle/fluid/transpiler/distribute_transpiler.py#L599
建议将此两处修改为.
isinstance(trainers, six.string_types):