Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Backend API change pre-work #2064

Merged
merged 22 commits into from
Dec 7, 2018
Merged

Backend API change pre-work #2064

merged 22 commits into from
Dec 7, 2018

Conversation

rkimballn1
Copy link
Contributor

@rkimballn1 rkimballn1 commented Nov 14, 2018

This is pre-work for the Backend API update.
The Backend::compile() call is changed from

bool compile(shared_ptr<Function> func)

to

Handle compile(shared_ptr<Function> func)

where Handle will ultimately be an opaque handle but currently is just a shared_ptr<Function>

The big change in this PR is that you now must call compile() before you call call()

The unit test changes are just to call compile before calling call. It is a lot of changes in a lot of files, but it really is just the same change over and over.

@rkimballn1 rkimballn1 added the Changes API API change which is not backwards compatible label Nov 14, 2018
src/ngraph/runtime/backend.hpp Show resolved Hide resolved
src/ngraph/runtime/cpu/cpu_backend.cpp Show resolved Hide resolved
src/ngraph/runtime/cpu/cpu_backend.cpp Show resolved Hide resolved
src/ngraph/runtime/backend.hpp Show resolved Hide resolved
src/ngraph/runtime/cpu/cpu_backend.cpp Show resolved Hide resolved
src/ngraph/runtime/cpu/cpu_backend.cpp Show resolved Hide resolved
Copy link
Contributor

@Krovatkin Krovatkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@diyessi diyessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc and examples need updating.

@diyessi diyessi merged commit e093355 into master Dec 7, 2018
@diyessi diyessi deleted the bob/compile_before_call branch December 7, 2018 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changes API API change which is not backwards compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.