-
Couldn't load subscription status.
- Fork 3.7k
Fix bug: "is_generate_per_split" should be set to property. #1322
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
CLAs look good, thanks! |
|
Hi, I faced the same error of ImportError: No module named discrete_domains, when I did PR. Don't you know how to fix it? |
Sorry, I don't know, and I only see this #1319. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
|
Great thanks for correcting this hard-to-see bug that probably affected many people! |
|
It's my pleasure! |
is_generate_per_splitin TranslateProblem inherits from Text2TextProblem, so it should be set to property. Otherwise when we train model of TranslateProblem, the judgement intensor2tensor/tensor2tensor/data_generators/text_problems.py
Line 302 in 65f66e7
is_generate_per_split(without@property) to returnFalsein the subclass of TranslateProblem.