Skip to content

Add an output buffering for neuralmonkey-run #799

@varisd

Description

@varisd

If I understand it correctly, when translating a dataset with neuralmonkey-run (using pretrained model), all the translations (or outputs) are held in the memory...
(this loop here: https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/learning_utils.py#L323)
... and only after producing all the outputs, they are being written into the output
(https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/learning_utils.py#L383)

When processing/translating large files, this might cause memory issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions