-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: create_run_config() got an unexpected keyword argument 'shard_to_cpu' #168
Comments
Thank you for reporting this issue. Please submit a pull request to update the t2t version and remove unused parameter. |
Ok, done |
I run into the same problem and now is appearing: create_run_config() missing 1 required positional argument: 'model_name' Is there a stable version? |
I don't think that the pull request has been merged yet - but in the meantime you can simply remove the referred line from |
I am running in a python 3.5 virtual environment and have the same error as @renan-cunha . After removing line 217 (cpu shard) as suggested and running the test again I have the following output:
@william-vw did you need to change anything else to get it to work? I also have a python 2.7 virtual environment and it gives a different error for each test: Thinking that somewhere where this function is called it is still putting something in for CPU shard and getting too many arguments. Python 3.5 thinks you deleted model_name and that is what is missing, python 2.7 thinks you are missing 1 argument. (Before shard CPU line was deleted there were 24) |
I was using the latest tensorflow and tensor2tensor version 1.12.0 I found downgrading to 1.9.0 for both I don't even have to remove line 217, I still get errors/warnings but 2/3 tests are passing now. |
No, I didn't have to do anything else to get it to work .. My setup:
|
Just to add some details. Hope it helps, I also received errors with 'shard_to_cpu'. After I applied fix manually I got error with 'model_name', when running test.
So I downgraded tensor2tensor to Update 1: Running G2P is working, but training with custom dictionary not. It is showing errors:
Update 2: My bad... My dictionary had the last line empty. I could fix the source, but changed code instead:
|
I just tried running the tests using
sudo python setup.py test
and got the following error, which is seems related to the fact that theshard_to_cpu
parameter was removed a while ago. After removing the referred line ing2p_trainer_utils.py
it works fine.The text was updated successfully, but these errors were encountered: