EleutherAI / gpt-neo

An implementation of model parallel GPT-2 and GPT-3-style models using the mesh-tensorflow library.
https://www.eleuther.ai
MIT License
8.21k stars 945 forks source link

removed a consider-using-in pitfall case #252

Closed NaelsonDouglas closed 2 years ago

NaelsonDouglas commented 2 years ago

Problem: The code was incurring into the consider-using-in pitfall case, as described by Pylint documentation here https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md

Solution: Applied adequate refactoring. Only a single line of code was changed