Closed lzzzfelipe closed 6 years ago
Calling top_k with less input elements than k results in an ugly runtime error, at least with older tensorflow versions, I don't know for new ones. That's why that cond is there. I made it compatible with new tensorflow, but have not removed it.
Fixes the error: