Skip to content

Code Problem and Potential Solution: Inference with CPU #117

@Beau-xu

Description

@Beau-xu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions