Skip to content

sync vs async #17

@ralphtheninja

Description

@ralphtheninja

So the session.run() operation is synchronous. If this can take a lot of time it doesn't really play nice with the node way of doing things.

// Run to evaluate and retrieve the value of the 'result' op.
let outputs = session.run(/* inputs */ null,
                          /* outputs */ [ 'result' ],
                          /* targets */ null);

// Should print out '42'
console.log(outputs.result.toValue());

Is it possible to make operations like this async using node-ffi?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions