Skip to content

Add implicit batch experimental - #34293

Merged
tensorflow-copybara merged 23 commits into
tensorflow:masterfrom
pooyadavoodi:add_implicit_batch_experimental
Dec 16, 2019
Merged

tensorflow-copybara merged 23 commits into
tensorflow:masterfrom
pooyadavoodi:add_implicit_batch_experimental

Conversation

@pooyadavoodi

Copy link
Copy Markdown
  • Add experimental argument use_implicit_batch. This is the first step in adding dynamic shapes to TF-TRT, so it still doesn't work but it provides the scaffolding for the next PRs.
  • Adds a simple test for rewriter_config_template which is the only way to use use_implicit_batch until we take it out of experimental.
  • Improves argument checks in trt_convert.py

@pooyadavoodi
pooyadavoodi requested a review from aaroey November 15, 2019 00:08
@tensorflow-bot tensorflow-bot Bot added the size:L CL Change Size: Large label Nov 15, 2019
@rthadur rthadur self-assigned this Nov 15, 2019
@pooyadavoodi
pooyadavoodi force-pushed the add_implicit_batch_experimental branch from 7e7a5b3 to 84fd786 Compare November 19, 2019 22:32
@rthadur
rthadur requested a review from aaroey November 19, 2019 23:34
@rthadur
rthadur requested a review from aaroey November 25, 2019 01:41
@gbaned

gbaned commented Dec 5, 2019

Copy link
Copy Markdown
Contributor

@pooyadavoodi Can you please resolve conflicts? Thanks!

@gbaned gbaned added the stat:awaiting response Status - Awaiting response from author label Dec 5, 2019
@aaroey

aaroey commented Dec 5, 2019

Copy link
Copy Markdown
Member

Also @sanjoy

Set use_implicit_batch to true in case it is not present in graph

Add parenthesese for readability
@pooyadavoodi
pooyadavoodi force-pushed the add_implicit_batch_experimental branch from 73cb4f1 to 0c2048a Compare December 6, 2019 17:54
@pooyadavoodi

Copy link
Copy Markdown
Author

@pooyadavoodi Can you please resolve conflicts? Thanks!

Done

I've added the commits from #34660 otherwise it will conflict with the master once #34660 is merged. I am hoping github will take care of duplicated commits.

aaroey
aaroey previously approved these changes Dec 11, 2019
@tensorflow-bot tensorflow-bot Bot added the kokoro:force-run Tests on submitted change label Dec 11, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Dec 11, 2019
This allows to create a rewriter_config that has all the non-TRT
optimizers off.
Pooya Davoodi added 2 commits December 12, 2019 13:47
Disabling optimizers should happen after CopyFrom the temaplte
otherwise the template can overwrite the disablement.
This is fine because CopyFrom of rewriter_config_template will overwrite
the disablement of optimizers and thus we can skip them.
aaroey
aaroey previously approved these changes Dec 12, 2019
@tensorflow-bot tensorflow-bot Bot added the kokoro:force-run Tests on submitted change label Dec 12, 2019
@kokoro-team kokoro-team removed kokoro:force-run Tests on submitted change labels Dec 12, 2019
@gbaned

gbaned commented Dec 13, 2019

Copy link
Copy Markdown
Contributor

@pooyadavoodi Could you please address Ubuntu Sanity errors? Thanks!

@rthadur
rthadur requested a review from aaroey December 16, 2019 07:58
@rthadur rthadur removed the ready to pull PR ready for merge process label Dec 16, 2019
@tensorflow-bot tensorflow-bot Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Dec 16, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Dec 16, 2019
tensorflow-copybara pushed a commit that referenced this pull request Dec 16, 2019
…mental

PiperOrigin-RevId: 285784123
Change-Id: I4df92ec74bdc834284cd5695184a8a58b7774f9c
@tensorflow-copybara
tensorflow-copybara merged commit 4b8fd40 into tensorflow:master Dec 16, 2019
tensorflow-copybara pushed a commit that referenced this pull request Dec 16, 2019
#34293).

PiperOrigin-RevId: 285813192
Change-Id: I38560c42489af14be40a99b78642eb8109437810
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process size:L CL Change Size: Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants