Skip to content
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

Code Problem and Potential Solution: Inference with CPU #117

Open
Beau-xu opened this issue Apr 28, 2022 · 0 comments
Open

Code Problem and Potential Solution: Inference with CPU #117

Beau-xu opened this issue Apr 28, 2022 · 0 comments

Comments

@Beau-xu
Copy link

Beau-xu commented Apr 28, 2022

It seems that the parameter enabling CPU inference is not correctly passed to the function get_infer_dataset. Actually, the function get_eval_dataset has the same issue.

image

Those who have this problem can edit the code in /bin/translator.py and append the parameter cpu=args.cpu

data.MTPipeline.get_infer_dataset(args.input[0], params, cpu=args.cpu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant