Skip to content

hidden fetch output time cost into executor run ops. #7742

Closed
@dzhwinter

Description

@dzhwinter

Now our implement separates the fetch variable and executor run a ProgramDesc.

self.executor.run(program.desc, scope, 0, True, True)
outs = [
core.get_fetch_variable(scope, fetch_var_name, i)
for i in xrange(len(fetch_list))
]

We can implement a queue and copy the output to the queue, only when the fetch call is ready, fetch out the value from the queue. It will not block the executor run the next epoch of training, which will reduce the wait time cost.

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