Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

C++ API test with synthetic data #284

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

tfeher
Copy link
Contributor

@tfeher tfeher commented Jan 17, 2022

Test program to run TF-TRT conversion with the C++API with synthetic data.

This is based on #271

Todo

  • rename / clean up files
  • script to launch test

@DEKHTIARJonathan
Copy link
Contributor

@meena-at-work: for review

Copy link
Contributor

@meena-at-work meena-at-work left a comment

Choose a reason for hiding this comment

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

Overall, it looks fine to me as is -- considering that it is intended to be a standalone example of using synthetic data (and not a benchmark). If you can address the one small nit, I think it's good to go.

// Converts an MNIST Image to a tensorflow Tensor.
tensorflow::Tensor MNISTImageToTensor(int offset, int batch_size);

std::vector<mnist::MNISTImage> images;
Copy link
Contributor

Choose a reason for hiding this comment

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

just a nit here -- can you name the member variables with a m_images or images_ so we know that they're member variables?

@meena-at-work meena-at-work self-requested a review June 27, 2022 18:30
@DEKHTIARJonathan DEKHTIARJonathan force-pushed the master branch 4 times, most recently from cf4f9f4 to 0f999c4 Compare July 26, 2022 01:28
@DEKHTIARJonathan DEKHTIARJonathan force-pushed the master branch 8 times, most recently from e8da9e9 to a742619 Compare August 3, 2022 00:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants