Skip to content
Branch: master
Commits on Apr 17, 2019
  1. Fix compatibility for newer tensorflow and python3 (#6587)

    NatLee authored and a-dai committed Apr 17, 2019
    1. In python3, dict.iteritems() is gone, change it to dict.items(). And it also doesn't treat zip object as a list, so change zip to list type.
    2. Add encoding flag with open function to make it more compatible for Windows/Linux system.
    3. For newer tensorflow, it expected int64 without giving a dtype parameter to embedding layer. We give it float32 to solve it.
You can’t perform that action at this time.