-
Notifications
You must be signed in to change notification settings - Fork 679
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
[DO NOT MERGE][Reproducing issue] : View converter , bs >1 #585
Draft
SrivastavaKshitij
wants to merge
436
commits into
NVIDIA-AI-IOT:master
Choose a base branch
from
SrivastavaKshitij:view_batch_greater_1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
436 commits
Select commit
Hold shift + click to select a range
295961a
Merge pull request #56 from NVIDIA-AI-IOT/pyt1.2
jaybdub e394a14
consider ceil_mode of torch.nn.MaxPool2d
mt1871 59e0ec8
registered add for more interfaces
jaybdub 5ad17bc
added additional div interfaces
jaybdub e951955
added additional mul interfaces
jaybdub 51e0c95
Merge pull request #61 from NVIDIA-AI-IOT/torch_methods
jaybdub 5c41345
added clamp, clamp_min, clamp_max
jaybdub 08fecd3
added clamp tensor
jaybdub 2769c29
added normalize
jaybdub 493515c
Merge pull request #62 from NVIDIA-AI-IOT/normalize
jaybdub 43d1b1a
added test cases for MaxPool2d
mt1871 d2825e5
Merge pull request #57 from mt1871/fix_maxpool_ceilmode
jaybdub 630194c
added mobilenet_v2 to module tests
jaybdub 81e73d2
Merge pull request #70 from NVIDIA-AI-IOT/mobilenet_v2
jaybdub f29ff96
added parsed_args
jaybdub d409f13
added utilities to support normalize
jaybdub dc547b8
dtype to normalized constants
jaybdub c429ae7
added avg_pool2d and removed AvgPool2d
jaybdub 5abcbbe
fixed normalize
jaybdub d47af74
added missing avg_pool2d.py
jaybdub 916e25d
added max_pool2d removed MaxPool2d
jaybdub 100bcdb
fixed arg parsing in avg_pool2d and max_pool2d
jaybdub 46534bd
refactor
jaybdub 83f1765
Merge pull request #73 from NVIDIA-AI-IOT/functional_refactor
jaybdub 05e7022
added split and chunk
jaybdub d6a3fd5
added shufflenet to module tests
jaybdub 9b616d7
Merge pull request #74 from NVIDIA-AI-IOT/split
jaybdub a838a19
added permute
jaybdub 7b46e02
fixed permute converter name
jaybdub c0c89d2
Merge pull request #75 from NVIDIA-AI-IOT/permute
jaybdub 72f0cd7
added trt_ method to get/create/broadcast tensors
jaybdub 0bfe27d
modified normalize to use trt_
jaybdub 5699dcd
fixed trt_ to handle single tenosr outputs
jaybdub 4c21936
updated converters to use trt_ instead of input._trt
jaybdub 9745e31
added __radd__ to support left hand primitives
jaybdub 9bcadbb
added rdiv and radd
jaybdub 3d2fef8
added rdiv, rmul, radd
jaybdub e69c577
replcaed input._trt with trt_ in interpolate
jaybdub fec6b22
Merge pull request #80 from NVIDIA-AI-IOT/prepare_broadcastable_tensors
jaybdub f27aa27
added mnasnet to test
jaybdub 922a0f7
Merge pull request #81 from NVIDIA-AI-IOT/prepare_broadcastable_tensors
jaybdub f29e1c9
refactored tests
jaybdub 5b1d552
refactored tests
jaybdub a660786
Merge branch 'extra_tests' of https://github.com/NVIDIA-AI-IOT/torch2…
jaybdub 4852b82
fix missing --include argument in test.py
jaybdub f6eae5a
Merge pull request #84 from NVIDIA-AI-IOT/extra_tests
jaybdub 7693e81
removed copy(..) from conversion hook
jaybdub f2c931e
removed copy(..) from conversion hook
jaybdub bbe7b1d
Merge branch 'py2_fix' of https://github.com/NVIDIA-AI-IOT/torch2trt …
jaybdub 506fb87
handle __div__, __rdiv__ and __idiv__ to support Python2
jaybdub beccc1a
Merge pull request #11 from narendasan/narendasan/gitignore
jaybdub c7cb4bd
Merge pull request #10 from narendasan/narendasan/typo_in_readme
jaybdub c982944
Merge pull request #85 from NVIDIA-AI-IOT/py2_fix
jaybdub 887ca21
Merge branch 'master' into narendasan/custom_dep_locations
jaybdub 6fafa46
removes caffe2 from build
jaybdub 950109b
Merge pull request #12 from narendasan/narendasan/custom_dep_locations
jaybdub c8b3619
added support for prelu
jaybdub b962b4d
Merge pull request #88 from NVIDIA-AI-IOT/prelu
jaybdub 9bbf348
added supported unary ops
jaybdub 972a7c7
Merge pull request #89 from NVIDIA-AI-IOT/unary_supported
jaybdub 1c87da6
added max reduce/elementwise
jaybdub 86feae5
added min reduce/elementwise
jaybdub dfc7483
added sub
jaybdub 601b94e
added pow elementwise
jaybdub 7947855
fixed min/max reduce all
jaybdub 0a3eaee
added prod
jaybdub 16ac488
added sum reduce
jaybdub 95a5849
increment patch
jaybdub 8d00907
separate tensors for test/convert to ensure falsely added constants c…
jaybdub a6ee9c4
more relu interfaces
jaybdub 28e1700
Merge pull request #90 from NVIDIA-AI-IOT/supported_elementwise
jaybdub 599524b
fixed broadcast shapes, removed final_shapes
jaybdub f25eaa5
removed all-dim test from max/min, since this cannot be supported by …
jaybdub 59ee834
removed leaf check
jaybdub d8b43bd
added jetson xavier benchmark
jaybdub d7d967c
Merge pull request #91 from NVIDIA-AI-IOT/broadcast_fix
jaybdub 9e8753a
added python2 serialization fix (bytes -> bytearray)
jaybdub 713086d
added save_load test
jaybdub 2d373fe
added save/load test
jaybdub 06ccc64
Merge pull request #93 from NVIDIA-AI-IOT/py2_serialization_fix
jaybdub 4b5a3c2
extra ignore
jaybdub 82e694c
Merge pull request #94 from NVIDIA-AI-IOT/ignore
jaybdub 6c403fc
added leaky_relu
jaybdub 11c465c
added elu
jaybdub e2ebb8e
added selu, softsign, elu
jaybdub 9b3a3c4
added softplus
jaybdub 2cb97a3
softplus, softsign
jaybdub 4046625
Merge pull request #95 from NVIDIA-AI-IOT/activations_supported
jaybdub 384384e
added network->dot graph util method
jaybdub e0b0e71
added network->dot graph util method
jaybdub 345b561
merged
jaybdub 323f1d3
graphviz module prefix fix
jaybdub e83730e
fixed Linear w.o bias
jaybdub 7255a24
Merge pull request #125 from jaybdub/linear_no_bias
jaybdub 3fac66b
handle non-existance torch method with existing converter
jaybdub c76f141
added profiling
jaybdub ace0abd
added network->dot graph util method
jaybdub f7dbb96
added network->dot graph util method
jaybdub 84101a9
graphviz module prefix fix
jaybdub 97260f2
handle non-existance torch method with existing converter
jaybdub 0a2c3eb
added profiling
jaybdub dc620d9
Merge branch 'network_visualization' of https://github.com/NVIDIA-AI-…
jaybdub 7984972
Merge pull request #106 from NVIDIA-AI-IOT/network_visualization
jaybdub e520dd2
added dummy
jaybdub 5ab1561
pass for Tensor.dim Tensor.size dummy converters
jaybdub b967c99
incremented patch
jaybdub 53ce056
Merge pull request #138 from NVIDIA-AI-IOT/unsupported_methods
jaybdub a32e684
fixed upsampling<->interpolate translation
af56018
reverted changes to fix build
4da14ed
renamed test nn_scale->upsample_scale_factor2
jaybdub 33af10d
Merge branch 'SrivastavaKshitij-kshitij/upsample_plugin_fix'
jaybdub 112922b
added int8 support
jaybdub 46bb0df
minor refactor/comment fix of DatasetCalibrator
jaybdub a7c35d5
handle loose dataset types
jaybdub 8e6e475
fixed int8 support for TensorRT 5.0
jaybdub b8a54ac
fix int8_support python2
jaybdub f60509b
refactor int8 buffer assignment using zip()
jaybdub 3a05d4a
increment vers
jaybdub eb54b5f
Merge pull request #168 from NVIDIA-AI-IOT/int8_support
jaybdub 23ac868
added instance norm from track_stats=True
jaybdub 5f30709
instance norm
jaybdub 67ab729
optimize instance norm by merging sqrt inside scale layer
jaybdub b3e0c08
Merge pull request #193 from NVIDIA-AI-IOT/instance_norm
jaybdub c374807
added converter / tests for torch.Tensor.__getitem__
jaybdub 1ee2c05
Merge pull request #195 from NVIDIA-AI-IOT/getitem
jaybdub 1a26b54
fixed Linear for N, *, H case
jaybdub 190a84d
Merge pull request #196 from NVIDIA-AI-IOT/linear_fix
jaybdub 8142c6f
fixed permute for list args
jaybdub 07831d6
Merge pull request #206 from NVIDIA-AI-IOT/permute_listarg_fix
jaybdub 72f6ec2
added support for adaptive_max_pool2d using regular pooling
jaybdub d526b24
Merge pull request #207 from NVIDIA-AI-IOT/adaptive_max_pool2d
jaybdub c6d047f
update clamp
SnowMasaya 1756aa9
rm idea
SnowMasaya e22844a
Merge pull request #224 from SnowMasaya/clamp
jaybdub 6be6da4
plugin setup.py
jaybdub 1142079
asdf
jaybdub b5bb91d
interpolate torch serialization
jaybdub 62a8918
version handling
jaybdub 1ca350b
fix padding issue of 2d transposed conv.
FrogKuma fb72cac
added upsample code in converters
f6a7eaf
added functional <--> nn.module binding for upsample
3ecd4f5
made changes:
3c00f09
working upsample with trt6
558cbff
added F.interpolate converter
f48ad4b
(WIP), trt version check
8f63b22
Add 3d convolutions and interpolations
oliver-batchelor 3ebf1b9
Update lots of ops
oliver-batchelor 63e65d4
More opreations
oliver-batchelor a4f0b52
Remove tools import
oliver-batchelor 393a13d
fixed trt version compatibility for torch2trt.py
401be2e
separated trt 7 ops
8cb3606
added original ops
3ce1371
reverting to default for trt 7
af2674c
changed value from 7 to 7.0
3c16ea5
added unit test for ConvTranspose2d and fixed an indentation error in…
512a511
added testcase for commonly used kernel size 4, stride 2, padding 1 c…
jaybdub a1daf58
Merge branch 'SrivastavaKshitij-transpose_conv2d'
jaybdub f3881cc
Merge branch 'master' into new_trt_ops
SrivastavaKshitij b2c8c13
added enabled kwarg to register_converter and add_module_test
jaybdub 5c31892
moved trt7 ops to converters dir
jaybdub e3f45d3
merged interpolate modules
jaybdub 1f4f69c
format init
jaybdub 229f807
increment minor vers
jaybdub 57c8188
added --plugins to setup
jaybdub a22e82c
plugins disclaimer to readme
jaybdub 1a5a397
disable interpolate if PyTorch < 1.3
jaybdub b31611c
fixed interpolate plugin checking
jaybdub 1f66266
Merge pull request #332 from NVIDIA-AI-IOT/SrivastavaKshitij-new_trt_ops
jaybdub 75fd8e2
allowed plugin loading to silent fail
jaybdub bea0f6a
Merge pull request #337 from NVIDIA-AI-IOT/plugin_silentfail
jaybdub 22e1118
added ONNX conversion alternative to torch2trt
jaybdub fe76a7b
Merge pull request #338 from NVIDIA-AI-IOT/onnx_alternative
jaybdub b0a7724
Add requirements.txt
vellamike 2aa01dd
Added install information
vellamike ed37a06
Update README.md
vellamike f7ff467
readme tensorrt install tip
jaybdub d88fcd5
Merge pull request #361 from NVIDIA-AI-IOT/vellamike-update-requirements
jaybdub f9828cc
added preliminary code for narrow
5c4ad8f
narrow converter added successfully
f3fe46c
softmax neg dim
jaybdub 1f1701d
Merge pull request #396 from NVIDIA-AI-IOT/softmax_negdim_fix
jaybdub 63895f0
Merge pull request #393 from SrivastavaKshitij/narrow_converter
jaybdub d245496
added add_missing_trt_tensors and broadcast_trt_tensors
jaybdub fb8da9a
bugfix and add
jaybdub d6e6f3b
add tests
jaybdub d14c6b7
div
jaybdub a08e6dc
dimfix
jaybdub 742b3fd
dump converters script
jaybdub 765c3ad
docs
jaybdub 3adbbe1
changelog contributing
jaybdub 3beeae2
docs
jaybdub 422e1e6
typos
jaybdub 4933faf
docs
jaybdub 3ddd70d
expose the batch size of INT8 calibration as parameter, since different
Chujingjun 48eb79e
Merge pull request #397 from NVIDIA-AI-IOT/const_dim_fix
jaybdub f5fb752
Merge pull request #398 from Chujingjun/master
jaybdub 16492db
dump converters script
jaybdub 88416f9
docs
jaybdub 1a59749
changelog contributing
jaybdub 93abd9f
docs
jaybdub 384ac89
typos
jaybdub 656805b
docs
jaybdub 571cb00
docs
jaybdub a263fe0
docs build contrib
jaybdub 0655a80
build docs
jaybdub 1474eee
asdf
jaybdub 3d496ae
docs merge
jaybdub 88d8038
merge fixes
jaybdub 5160901
asdf
jaybdub 5aae576
mkdocs
jaybdub 86d9c3a
docs
jaybdub 67de214
contrib plain md
jaybdub 6c0aec7
basic usage
jaybdub bd2cd11
issues pathfix
jaybdub 50169ef
broken link
jaybdub 62afaf1
release build docs
jaybdub c9dcd5e
Merge pull request #399 from jaybdub/docs
jaybdub 3efb89d
Reduce precision docs (#400)
jaybdub 4141730
Update reduced_precision.md (#402)
jaybdub 7563770
Update mkdocs.yml
jaybdub ea835dc
remove ndim referneces to support older pytorch versions (#415)
jaybdub b0cc8e7
Assert that inputs are contiguous (#418)
alsrgv a9a6a53
Add layer names (#432)
jaybdub d1fa6f9
Sandeepkumar skb groupnorm plugin (#437)
jaybdub adccbf1
Koenvandesande remove duplicate filenames (#448)
jaybdub 81024cc
allow direct method setting to support custom layers (#460)
jaybdub 2b1827e
custom converter to changelog (#462)
jaybdub 033df0c
added expand converter (#487)
jaybdub 3e4ed64
Additional converters for floordiv, mod, ne, and torch::tensor() oper…
meremeev a5bdd29
added passing of torch2trt_kwargs to conversion context (#482)
jaybdub e55a7a5
added filter to floordiv to only enable for pytorch 1.6+ (#511)
jaybdub 15da623
increment version to 0.2.0 (#517)
jaybdub 44977a9
Release push docs tagfix (#519)
jaybdub 8100c6a
Update README.md
jaybdub 72c81f9
Create CLA.md
jaybdub b9d9e73
Functional conv (#535)
jaybdub 8f7f4f7
added contributors page
jaybdub 2d6150a
Added John Welsh to CONTRIBUTORS.md
jaybdub 1dc9ad1
I have read and agree to the Contributor License Agreement as written…
jaybdub e01279c
Merge pull request #550 from jaybdub/contributors
jaybdub 2653a71
added silu converter
fb67b42
functional linear converter
5ee6033
added gelu converter
ddb3558
added layer_norm converter
9457b8c
Merge pull request #570 from jaybdub/linear_functional_converter
jaybdub b604881
added converter for torch.roll
0963e49
Merge pull request #574 from jaybdub/roll_converter
jaybdub cabb04f
fixed merged conflict
1a7e216
recreating issue with view converter , bs >1
ac95df3
added some print statements for debugging
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## Individual Contributor License Agreement (CLA) | ||
|
||
**Thank you for submitting your contributions to this project.** | ||
|
||
By signing this CLA, you agree that the following terms apply to all of your past, present and future contributions | ||
to the project. | ||
|
||
### License. | ||
|
||
You hereby represent that all present, past and future contributions are governed by the | ||
[MIT License](https://opensource.org/licenses/MIT) | ||
copyright statement. | ||
|
||
This entails that to the extent possible under law, you transfer all copyright and related or neighboring rights | ||
of the code or documents you contribute to the project itself or its maintainers. | ||
Furthermore you also represent that you have the authority to perform the above waiver | ||
with respect to the entirety of you contributions. | ||
|
||
### Moral Rights. | ||
|
||
To the fullest extent permitted under applicable law, you hereby waive, and agree not to | ||
assert, all of your “moral rights” in or relating to your contributions for the benefit of the project. | ||
|
||
### Third Party Content. | ||
|
||
If your Contribution includes or is based on any source code, object code, bug fixes, configuration changes, tools, | ||
specifications, documentation, data, materials, feedback, information or other works of authorship that were not | ||
authored by you (“Third Party Content”) or if you are aware of any third party intellectual property or proprietary | ||
rights associated with your Contribution (“Third Party Rights”), | ||
then you agree to include with the submission of your Contribution full details respecting such Third Party | ||
Content and Third Party Rights, including, without limitation, identification of which aspects of your | ||
Contribution contain Third Party Content or are associated with Third Party Rights, the owner/author of the | ||
Third Party Content and Third Party Rights, where you obtained the Third Party Content, and any applicable | ||
third party license terms or restrictions respecting the Third Party Content and Third Party Rights. For greater | ||
certainty, the foregoing obligations respecting the identification of Third Party Content and Third Party Rights | ||
do not apply to any portion of a Project that is incorporated into your Contribution to that same Project. | ||
|
||
### Representations. | ||
|
||
You represent that, other than the Third Party Content and Third Party Rights identified by | ||
you in accordance with this Agreement, you are the sole author of your Contributions and are legally entitled | ||
to grant the foregoing licenses and waivers in respect of your Contributions. If your Contributions were | ||
created in the course of your employment with your past or present employer(s), you represent that such | ||
employer(s) has authorized you to make your Contributions on behalf of such employer(s) or such employer | ||
(s) has waived all of their right, title or interest in or to your Contributions. | ||
|
||
### Disclaimer. | ||
|
||
To the fullest extent permitted under applicable law, your Contributions are provided on an "as is" | ||
basis, without any warranties or conditions, express or implied, including, without limitation, any implied | ||
warranties or conditions of non-infringement, merchantability or fitness for a particular purpose. You are not | ||
required to provide support for your Contributions, except to the extent you desire to provide support. | ||
|
||
### No Obligation. | ||
|
||
You acknowledge that the maintainers of this project are under no obligation to use or incorporate your contributions | ||
into the project. The decision to use or incorporate your contributions into the project will be made at the | ||
sole discretion of the maintainers or their authorized delegates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the test case is hard-fixing the batch dimension to 1 here.
In general, TensorRT engines are broadcast across the batch dimension, so operations that change the batch dimension aren't permitted.
Perhaps adding a test case with View(2, ...) would work for batch size 2. Or maybe even View(-1, ...) with other dimensions specified explicitly.