Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C API] Initial implementation #400

Merged
merged 1 commit into from
Jul 23, 2020
Merged

[C API] Initial implementation #400

merged 1 commit into from
Jul 23, 2020

Conversation

VivekPanyam
Copy link
Collaborator

@VivekPanyam VivekPanyam commented Jul 17, 2020

Summary:

An initial basic implementation of a C API for Neuropod.

Test Plan:

Added a test that loads a model, runs inference, and verifies the output. More unit tests and integration tests should be added in the future

@VivekPanyam VivekPanyam requested a review from vkuzmin-uber July 17, 2020 07:40

struct NP_Neuropod
{
std::unique_ptr<neuropod::Neuropod> model;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: if unique_ptr is used explicitly, it makes sense to include explicitly too. The same about shared_ptr

Copy link
Collaborator Author

@VivekPanyam VivekPanyam Jul 23, 2020

Choose a reason for hiding this comment

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

Fixed (in this file and others)

@@ -0,0 +1,24 @@
/* Copyright (c) 2020 UATC, LLC
Copy link
Contributor

Choose a reason for hiding this comment

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

btw, what is UATC, is it Uber ATG abbrevation?

@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #400 into master will decrease coverage by 0.07%.
The diff coverage is 83.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #400      +/-   ##
==========================================
- Coverage   90.10%   90.03%   -0.08%     
==========================================
  Files          77       82       +5     
  Lines        4741     4797      +56     
==========================================
+ Hits         4272     4319      +47     
- Misses        469      478       +9     
Impacted Files Coverage Δ
source/neuropod/bindings/c/np_status.cc 54.54% <54.54%> (ø)
source/neuropod/bindings/c/np_valuemap.cc 78.94% <78.94%> (ø)
source/neuropod/bindings/c/c_api.cc 100.00% <100.00%> (ø)
source/neuropod/bindings/c/np_tensor.cc 100.00% <100.00%> (ø)
source/neuropod/bindings/c/np_tensor_allocator.cc 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7bf8b0...4b9b968. Read the comment docs.

@VivekPanyam VivekPanyam changed the title [C API] Add internal headers [C API] Initial implementation Jul 23, 2020
@VivekPanyam VivekPanyam merged commit eae86ce into master Jul 23, 2020
@VivekPanyam VivekPanyam deleted the c_api branch July 23, 2020 23:21
@VivekPanyam VivekPanyam linked an issue Aug 6, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a C API to Neuropod
2 participants