Skip to content

Commit 483ef59

Browse files
committedOct 20, 2021
refactor!: API level rename
BREAKING CHANGE: This commit renames the namespaces of all TRTorch/Torch-TensorRT APIs. Now torchscript specific functions are segregated into their own torch_tensorrt::torchscript / torch_tensorrt.ts namespaces. Generic utils will remain in the torch_tensorrt namespace. Guidance on how to port forward will follow in the next commits
1 parent f99a6ca commit 483ef59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1615
-1502
lines changed
 

‎.gitignore

+10-9
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,23 @@ __pycache__
3535
*.egg-info
3636
dist
3737
bdist
38-
py/trtorch/_version.py
39-
py/trtorch/lib
40-
py/trtorch/include
41-
py/trtorch/bin
42-
py/trtorch/BUILD
43-
py/trtorch/LICENSE
44-
py/trtorch/WORKSPACE
38+
py/torch_tensorrt/_version.py
39+
py/torch_tensorrt/lib
40+
py/torch_tensorrt/include
41+
py/torch_tensorrt/bin
42+
py/torch_tensorrt/BUILD
43+
py/torch_tensorrt/LICENSE
44+
py/torch_tensorrt/WORKSPACE
4545
py/wheelhouse
4646
py/.eggs
4747
notebooks/.ipynb_checkpoints/
4848
*.cache
4949
tests/py/data
5050
examples/**/deps/**/*
5151
!examples/**/deps/.gitkeep
52-
examples/trtorchrt_example/trtorchrt_example
52+
examples/torchtrt_runtime_example/torchtrt_runtime_example
5353
examples/int8/ptq/ptq
5454
examples/int8/qat/qat
5555
examples/int8/training/vgg16/data/*
56-
examples/int8/datasets/data/*
56+
examples/int8/datasets/data/*
57+
env/**/*

‎BUILD

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ config_setting(
99

1010
pkg_tar(
1111
name = "include_core",
12-
package_dir = "include/trtorch",
12+
package_dir = "include/torch_tensorrt",
1313
deps = [
1414
"//core:include",
1515
"//core/conversion:include",
@@ -35,17 +35,17 @@ pkg_tar(
3535
srcs = [
3636
"//cpp:api_headers",
3737
],
38-
package_dir = "include/trtorch/",
38+
package_dir = "include/torch_tensorrt/",
3939
)
4040

4141
pkg_tar(
4242
name = "lib",
4343
srcs = select({
44-
":windows": ["//cpp/lib:trtorch.dll"],
44+
":windows": ["//cpp/lib:torch_tensorrt.dll"],
4545
"//conditions:default": [
46-
"//cpp/lib:libtrtorch.so",
47-
"//cpp/lib:libtrtorchrt.so",
48-
"//cpp/lib:libtrtorch_plugins.so",
46+
"//cpp/lib:libtorchtrt.so",
47+
"//cpp/lib:libtorchtrt_runtime.so",
48+
"//cpp/lib:libtorchtrt_plugins.so",
4949
],
5050
}),
5151
mode = "0755",
@@ -55,21 +55,21 @@ pkg_tar(
5555
pkg_tar(
5656
name = "bin",
5757
srcs = [
58-
"//cpp/bin/trtorchc",
58+
"//cpp/bin/torchtrtc",
5959
],
6060
mode = "0755",
6161
package_dir = "bin/",
6262
)
6363

6464
pkg_tar(
65-
name = "libtrtorch",
65+
name = "libtorchtrt",
6666
srcs = [
6767
"//:LICENSE",
6868
"//bzl_def:BUILD",
6969
"//bzl_def:WORKSPACE"
7070
],
7171
extension = "tar.gz",
72-
package_dir = "trtorch",
72+
package_dir = "torch_tensorrt",
7373
deps = [
7474
":lib",
7575
":include",

0 commit comments

Comments
 (0)