Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
4778b2b
feat: support setting input types of subgraph in fallback, handle Ten…
inocsin Oct 19, 2021
c8dc6e9
feat: support aten::conv1d and aten::conv_transpose1d
ruoqianguo Oct 19, 2021
0bc3c05
feat: support truncate_long_and_double in fallback subgraph input type
inocsin Oct 20, 2021
606d4de
merge from master
inocsin Oct 20, 2021
fca53ce
feat: handle scalar type of size [] in shape_analysis
inocsin Oct 20, 2021
01417cd
Merge remote-tracking branch 'upstream/master' into fix_conv1d
ruoqianguo Oct 20, 2021
b6d36aa
lower aten::conv1d and aten::conv_transpose1d to aten:convolution
ruoqianguo Oct 20, 2021
483ef59
refactor!: API level rename
narendasan Oct 20, 2021
3037f75
chore: add warning message when truncating graph input type of kLong/…
inocsin Oct 21, 2021
a9ab1b4
refactor(//py): Redo Python tests for new API
narendasan Oct 21, 2021
b98eac4
refactor: Apply linting
narendasan Oct 21, 2021
e5f96d9
feat: Update documentation with new library name Torch-TensorRT
peri044 Oct 21, 2021
05b8376
refactor(//docker): Update docker container for new API
narendasan Oct 22, 2021
8d9722d
refactor! : Update README.md with the new library name Torch-TensorRT
peri044 Oct 22, 2021
ded366d
Merge branch 'torch_tensorrt_rebrand' into docs_refactor
peri044 Oct 22, 2021
e7bbc2d
chore: More README updates
peri044 Oct 22, 2021
0a2405f
chore: Doc updates
peri044 Oct 22, 2021
8afab22
fix: Fix plugin registration macro
peri044 Oct 22, 2021
0c42277
refactor: Finishing porting namespace
narendasan Oct 22, 2021
fb59b80
chore: Rebase with torch_tensorrt_rebrand branch
peri044 Oct 22, 2021
05387f9
Merge branch 'docs_refactor' into 'torch_tensorrt_rebrand'
narendasan Oct 22, 2021
715a0ce
refactor: Rebranding complete
narendasan Oct 22, 2021
493c19f
refactor: Realign py api
narendasan Oct 22, 2021
d872d02
refactor: Update example names
narendasan Oct 22, 2021
65ffaef
refactor: update docs
narendasan Oct 22, 2021
8274fd9
fix: Update notebooks with new library name Torch-TensorRT
peri044 Oct 22, 2021
af13839
chore: Update Docker instructions in main README.md
peri044 Oct 22, 2021
c4723a9
chore: Update README C++ code snippet
peri044 Oct 22, 2021
6619371
Merge branch 'notebook' into 'main'
narendasan Oct 22, 2021
4d606bc
Merge branch 'readme' into 'main'
narendasan Oct 22, 2021
f34e230
refactor!: Changing the C++ api to be snake case
narendasan Oct 22, 2021
fc4ace5
refactor: Update setup.py include paths
narendasan Oct 22, 2021
bc2978e
Merge branch 'snake_case_apis_cpp' into 'main'
narendasan Oct 22, 2021
20f327c
docker/Dockerfile.21.06 etc. have all been replaced by docker/Dockerf…
Oct 22, 2021
53ac60c
Merge branch 'sven-dev' into 'main'
peri044 Oct 22, 2021
b884146
Cleaned up dist_build.sh
borisfom Oct 22, 2021
fda1ca0
Build script cleanup
borisfom Oct 22, 2021
2084b02
Amended docker/Dockerfile so that the demo notebooks are visible when…
Oct 22, 2021
f9ab16f
Fixed paths
borisfom Oct 23, 2021
78636eb
Merge branch 'sven-dev' into 'main'
narendasan Oct 23, 2021
5c27343
(//tests): Fix gelu changes
Oct 23, 2021
93c2384
Merge branch 'anuragd/gelu_changes' into 'release/ngc/21.11'
Oct 23, 2021
f0672cc
(//docker): Unify cuda lib path for amd64 and arm64
Oct 23, 2021
c7328d0
Merge branch 'anuragd/cuda_arm64' into 'release/ngc/21.11'
Oct 23, 2021
ad4ad92
Restored WORKSPACE
borisfom Oct 23, 2021
cdd8b12
(//docker): Dockerfile platform agnostic
Oct 23, 2021
9982855
fix(//docker): Update docker container build script to use release path
narendasan Oct 25, 2021
840ca89
fix(//py): Fix some api import issues
narendasan Oct 25, 2021
cb33cd9
refactor(//py): Remove arrant print
narendasan Oct 25, 2021
2d2656c
Merge branch 'anuragd/dockerfile_platform_agnostics' into 'main'
narendasan Oct 25, 2021
6f9c8ab
Modified the Dockerfile to make the demo notebooks visible in the con…
svenchilton Oct 25, 2021
fa1c778
Merge branch 'build-cleanup' into 'release/ngc/21.11'
borisfom Oct 25, 2021
7bb7850
fix notebook for API change
vinhngx Oct 26, 2021
7b4e504
fix notebook location: mount directory to docker, so changes to noteb…
vinhngx Oct 26, 2021
dbeb7e3
Merge branch 'main' into 'main'
narendasan Oct 26, 2021
cfbfbb4
Merge branch 'sven_fix_dockerfile_make_demo_notebooks_visible_in_jupy…
narendasan Oct 26, 2021
b9da987
(//tests): Removed double linking of libs
Oct 26, 2021
e1ea3c0
(//docker): Fixed dockerfiles
Oct 26, 2021
1e11350
(//tests): Fixed failed test cases from pipeline
Oct 27, 2021
97e6376
(//tests): Removed softmax test case
Oct 27, 2021
e72921a
(//tests): Disabled flaky tests on Ampere
Oct 27, 2021
d694dc5
(//tests): Relaxing GelU related test case tolerance just in case
Oct 27, 2021
bdd9c58
(//core): Fixed the evaluator with updated torch from DLFW
Oct 27, 2021
db49786
(//test): Disabled GELU flaky tests
Oct 28, 2021
5643972
feat: support aten::eq.str evaluator
ruoqianguo Oct 29, 2021
6d73e43
feat: support aten::__and__.bool evaluator
ruoqianguo Oct 29, 2021
84481a7
Merge branch 'fix_conv1d' of https://github.com/guoruoqian/TRTorch in…
narendasan Nov 1, 2021
038ca95
Merge branch 'fix_fallback_inputs' of https://github.com/inocsin/TRTo…
narendasan Nov 1, 2021
55f90e2
Merge branch 'release/1.0' into 'guoruoqian-fix_conv1d'
narendasan Nov 1, 2021
3ccca83
(//tests): Enabled the test cases removed from DLFW
Nov 1, 2021
ff10ff4
Merge branch 'anuragd/enable_tests' into 'release/1.0'
narendasan Nov 1, 2021
119993b
(//tests): CI based masking on test cases
Nov 1, 2021
7a0c9a5
feat: Add TF32 override flag in bazelrc for CI-Testing
Nov 1, 2021
054373b
Merge branch 'guoruoqian-support_eq_str' into 'release/1.0'
narendasan Nov 2, 2021
e2b7b56
Merge branch 'guoruoqian-fix_conv1d' into 'release/1.0'
narendasan Nov 2, 2021
5e0880b
Merge branch 'anuragd/flag_based_test_selection' into 'release/1.0'
narendasan Nov 2, 2021
51412c7
feat: Updating the pre_built to prebuilt
Nov 2, 2021
540e135
Merge branch 'anuragd/change_pre_built' into 'release/1.0'
narendasan Nov 2, 2021
648bad3
fix: Partial compilation translation to internal settings was incorrect
narendasan Nov 3, 2021
d53f136
fix(aten::conv1d): Update namespace, fix typo in dest IR for conv1d
narendasan Nov 3, 2021
ba743f5
fix(eval): Rollback 1.11a0 change + namespace issues
narendasan Nov 3, 2021
cc7d0b7
refactor! : Update Pytorch version to 1.10
peri044 Nov 1, 2021
d1c407f
Merge branch 'fix_conv1d' into 'release/1.0'
narendasan Nov 3, 2021
e3da27f
Merge branch 'fix_pc' into 'release/1.0'
narendasan Nov 3, 2021
a8a407f
Merge branch 'fix_eval' into 'release/1.0'
narendasan Nov 3, 2021
40bc4e3
fix: aten::gelu call was wrong in test
narendasan Nov 3, 2021
3ff272f
Merge branch 'release/1.0' into inocsin-fix_fallback_inputs
narendasan Nov 3, 2021
77bf9da
refactor: Update for new api
narendasan Nov 3, 2021
3967fb0
Merge branch 'inocsin-fix_fallback_inputs' into 'release/1.0'
narendasan Nov 3, 2021
1435845
fix: Renable backtrace and make it less repetitive
narendasan Nov 3, 2021
ee2bfa1
Merge branch 'fix_687' into 'release/1.0'
narendasan Nov 3, 2021
ee07cff
Update _compiler.py
narendasan Nov 4, 2021
2f91fb6
Update _Input.py
narendasan Nov 4, 2021
dc572cb
Merge branch 'main' of https://gitlab.com/nvidia/trtorch/Torch-Tensor…
narendasan Nov 4, 2021
884a5ac
test: Add class test for torch_tensorrt.Input
narendasan Nov 4, 2021
56cf56c
Merge branch 'release/1.0' into rebased_1.10_update
narendasan Nov 5, 2021
90946ae
refactor(//core/lowering): Update trt::const impl to match new JIT API
narendasan Nov 5, 2021
06533fe
refactor!: Updating bazel version for py build container
narendasan Nov 5, 2021
a5543c9
Update README.md with new API & pointing to NGC container
ncomly-nvidia Nov 8, 2021
87f1506
Merge branch 'rebased_1.10_update' into 'release/1.0'
narendasan Nov 8, 2021
79904bf
refactor(//docker): Updating bazel version in dockerfiles
narendasan Nov 8, 2021
93e4c4a
Merge branch 'ncomly-torch_tensorrt_rebrand-patch-42370' into 'releas…
narendasan Nov 8, 2021
d06eba7
doc: Update installation instructions based on ABI and platforms
peri044 Nov 9, 2021
c3d648b
chore: Update doc
peri044 Nov 9, 2021
8c4224b
chore: Minor update
peri044 Nov 9, 2021
38685a0
Merge branch 'readme' into 'release/1.0'
narendasan Nov 9, 2021
62bdc45
chore: Fix python jetson installation instruction
peri044 Nov 9, 2021
3892498
Merge branch 'readme' into 'release/1.0'
narendasan Nov 9, 2021
afa97b9
chore: Updates to documentation
narendasan Nov 9, 2021
fc6d5ff
chore: Regen docs for final review
narendasan Nov 9, 2021
8b1221b
chore: update list of supported ops
narendasan Nov 9, 2021
8694038
refactor: Apply linting
narendasan Nov 9, 2021
7ab76bc
chore: Docs for v1.0.0
narendasan Nov 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ build:python --define=target_lang=python

build:pre_cxx11_abi --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
build:pre_cxx11_abi --linkopt="-D_GLIBCXX_USE_CXX11_ABI=0"
build:pre_cxx11_abi --define=abi=pre_cxx11_abi
build:pre_cxx11_abi --define=abi=pre_cxx11_abi

build:ci_testing --define=torchtrt_src=pre_built --cxxopt="-DDISABLE_TEST_IN_CI" --action_env "NVIDIA_TF32_OVERRIDE=0"
build:use_precompiled_torchtrt --define=torchtrt_src=pre_built

test:ci_testing --define=torchtrt_src=pre_built --cxxopt="-DDISABLE_TEST_IN_CI" --action_env "NVIDIA_TF32_OVERRIDE=0"
test:use_precompiled_torchtrt --define=torchtrt_src=pre_built
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
4.2.1
63 changes: 63 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
bazel-*
*.tar.gz
*.whl
*.bin
docs/v*/**/*
env/
bazel
bazel-bazel-test
bazel-bin
bazel-genfiles
bazel-out
bazel-testlogs
bazel-TRTorch
bazel-trtorch-testing
third_party/pytorch
*.jit
*.jit.pt
.\#*
experiments/
py/build/
py/tmp/
py/.eggs
.vscode/
.DS_Store
._DS_Store
*.pth
*.pyc
cpp/ptq/training/vgg16/data/*
*.bin
cpp/ptq/datasets/data/
tests/accuracy/datasets/data/*
._.DS_Store
*.tar.gz
*.tgz
docsrc/_build
docsrc/_notebooks
docsrc/_cpp_api
docsrc/_tmp
*.so
__pycache__
*.egg-info
dist
bdist
py/torch_tensorrt/_version.py
py/torch_tensorrt/lib
py/torch_tensorrt/include
py/torch_tensorrt/bin
py/torch_tensorrt/BUILD
py/torch_tensorrt/LICENSE
py/torch_tensorrt/WORKSPACE
py/wheelhouse
py/.eggs
notebooks/.ipynb_checkpoints/
*.cache
tests/py/data
examples/**/deps/**/*
examples/torchtrt_runtime_example/torchtrt_runtime_example
examples/int8/ptq/ptq
examples/int8/qat/qat
examples/int8/training/vgg16/data/*
examples/int8/datasets/data/*
env/**/*
*.ts
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/--feature-request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: "✨ Feature request"
about: Suggest an idea for this project
title: "✨[Feature] An idea about a new feature in TRTorch"
title: "✨[Feature] An idea about a new feature in Torch-TensorRT"
labels: feature request
assignees: narendasan

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/--question.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "❓ Question"
about: Ask a question about using TRTorch
about: Ask a question about using Torch-TensorRT
title: "❓ [Question] How do you ....? "
labels: question
assignees: ''
Expand All @@ -17,7 +17,7 @@ assignees: ''

## Environment

> Build information about the TRTorch compiler can be found by turning on debug messages
> Build information about Torch-TensorRT can be found by turning on debug messages
- PyTorch Version (e.g., 1.0):
- CPU Architecture:
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: "\U0001F41B Bug Report"
about: Submit a bug report on an issue encountered with TRTorch
title: "\U0001F41B [Bug] Encountered bug when using TRTorch"
about: Submit a bug report on an issue encountered with Torch-TensorRT
title: "\U0001F41B [Bug] Encountered bug when using Torch-TensorRT"
labels: bug
assignees: ''

Expand All @@ -27,9 +27,9 @@ Steps to reproduce the behavior:

## Environment

> Build information about the TRTorch compiler can be found by turning on debug messages
> Build information about Torch-TensorRT can be found by turning on debug messages

- TRTorch Version (e.g. 0.2.0):
- Torch-TensorRT Version (e.g. 1.0.0):
- PyTorch Version (e.g. 1.0):
- CPU Architecture:
- OS (e.g., Linux):
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/op-converter-request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: "↔ Op Converter Request"
about: Submit a proposal/request to support a new PyTorch operator in TRTorch
title: "↔ [Converter] Add support for my_op in TRTorch"
about: Submit a proposal/request to support a new PyTorch operator in Torch-TensorRT
title: "↔ [Converter] Add support for my_op in Torch-TensorRT"
labels: 'component: converters, feature request'
assignees: ''

Expand Down
6 changes: 3 additions & 3 deletions .github/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"component: trtorchc":
- cpp/trtorchc/**/*
"component: torchtrtc":
- cpp/torchtrtc/**/*

"component: api [C++]":
- cpp/**/*

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build-docs:
runs-on: ubuntu-18.04
container:
image: docker.pkg.github.com/nvidia/trtorch/docgen:latest
image: docker.pkg.github.com/nvidia/torch-tensorrt/docgen:latest
credentials:
username: $GITHUB_ACTOR
password: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -36,14 +36,14 @@ jobs:
- name: Generate New Docs
run: |
cd docsrc
python3 -c "import trtorch; print(trtorch.__version__)"
python3 -c "import torch_tensorrt; print(torch_tensorrt.__version__)"
make html
- uses: stefanzweifel/git-auto-commit-action@v4
with:
# Required
commit_message: "docs: [Automated] Regenerating documenation for ${{ steps.vars.outputs.sha }}"
commit_options: "--no-verify --signoff"
file_pattern: docs/
commit_user_name: TRTorch Github Bot
commit_user_email: trtorch.github.bot@nvidia.com
commit_author: TRTorch Github Bot <trtorch.github.bot@nvidia.com>
commit_user_name: Torch-TensorRT Github Bot
commit_user_email: torch-tensorrt.github.bot@nvidia.com
commit_author: Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Run image
run: |
docker run -it -d --name cpplinter -e GITHUB_TOKEN=$GITHUB_TOKEN -v $GITHUB_WORKSPACE:/workspace -v $GITHUB_EVENT_PATH:/GITHUB_EVENT.json -w /workspace docker.pkg.github.com/nvidia/trtorch/docgen:latest
docker run -it -d --name cpplinter -e GITHUB_TOKEN=$GITHUB_TOKEN -v $GITHUB_WORKSPACE:/workspace -v $GITHUB_EVENT_PATH:/GITHUB_EVENT.json -w /workspace docker.pkg.github.com/nvidia/torch-tensorrt/docgen:latest
docker exec cpplinter bash -c "cp /workspace/docker/WORKSPACE.docs /workspace/WORKSPACE"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -40,7 +40,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Run image
run: |
docker run -it -d --name pylinter -e GITHUB_TOKEN=$GITHUB_TOKEN -v $GITHUB_WORKSPACE:/workspace -v $GITHUB_EVENT_PATH:/GITHUB_EVENT.json -w /workspace docker.pkg.github.com/nvidia/trtorch/docgen:latest
docker run -it -d --name pylinter -e GITHUB_TOKEN=$GITHUB_TOKEN -v $GITHUB_WORKSPACE:/workspace -v $GITHUB_EVENT_PATH:/GITHUB_EVENT.json -w /workspace docker.pkg.github.com/nvidia/torch-tensorrt/docgen:latest
docker exec pylinter bash -c "cp /workspace/docker/WORKSPACE.docs /workspace/WORKSPACE"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
22 changes: 13 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ bazel-out
bazel-testlogs
bazel-TRTorch
bazel-trtorch-testing
bazel-torch-tensorrt
bazel-Torch-TensorRT
third_party/pytorch
*.jit
*.jit.pt
Expand Down Expand Up @@ -35,22 +37,24 @@ __pycache__
*.egg-info
dist
bdist
py/trtorch/_version.py
py/trtorch/lib
py/trtorch/include
py/trtorch/bin
py/trtorch/BUILD
py/trtorch/LICENSE
py/trtorch/WORKSPACE
py/torch_tensorrt/_version.py
py/torch_tensorrt/lib
py/torch_tensorrt/include
py/torch_tensorrt/bin
py/torch_tensorrt/BUILD
py/torch_tensorrt/LICENSE
py/torch_tensorrt/WORKSPACE
py/wheelhouse
py/.eggs
notebooks/.ipynb_checkpoints/
*.cache
tests/py/data
examples/**/deps/**/*
!examples/**/deps/.gitkeep
examples/trtorchrt_example/trtorchrt_example
examples/torchtrt_runtime_example/torchtrt_runtime_example
examples/int8/ptq/ptq
examples/int8/qat/qat
examples/int8/training/vgg16/data/*
examples/int8/datasets/data/*
examples/int8/datasets/data/*
env/**/*
bazel-Torch-TensorRT-Preview
18 changes: 9 additions & 9 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config_setting(

pkg_tar(
name = "include_core",
package_dir = "include/trtorch",
package_dir = "include/torch_tensorrt",
deps = [
"//core:include",
"//core/conversion:include",
Expand All @@ -35,17 +35,17 @@ pkg_tar(
srcs = [
"//cpp:api_headers",
],
package_dir = "include/trtorch/",
package_dir = "include/torch_tensorrt/",
)

pkg_tar(
name = "lib",
srcs = select({
":windows": ["//cpp/lib:trtorch.dll"],
":windows": ["//cpp/lib:torch_tensorrt.dll"],
"//conditions:default": [
"//cpp/lib:libtrtorch.so",
"//cpp/lib:libtrtorchrt.so",
"//cpp/lib:libtrtorch_plugins.so",
"//cpp/lib:libtorchtrt.so",
"//cpp/lib:libtorchtrt_runtime.so",
"//cpp/lib:libtorchtrt_plugins.so",
],
}),
mode = "0755",
Expand All @@ -55,21 +55,21 @@ pkg_tar(
pkg_tar(
name = "bin",
srcs = [
"//cpp/bin/trtorchc",
"//cpp/bin/torchtrtc",
],
mode = "0755",
package_dir = "bin/",
)

pkg_tar(
name = "libtrtorch",
name = "libtorchtrt",
srcs = [
"//:LICENSE",
"//bzl_def:BUILD",
"//bzl_def:WORKSPACE"
],
extension = "tar.gz",
package_dir = "trtorch",
package_dir = "torch_tensorrt",
deps = [
":lib",
":include",
Expand Down
Loading