Skip to content

Commit 03b7077

Browse files
committed
remove conversion for sqrt that uses trt Scale
1 parent 181082b commit 03b7077

File tree

7 files changed

+14
-121
lines changed

7 files changed

+14
-121
lines changed

WORKSPACE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ http_archive(
2020
name = "libtorch",
2121
build_file = "@//third_party/libtorch:BUILD",
2222
strip_prefix = "libtorch",
23-
urls = ["https://download.pytorch.org/libtorch/cu101/libtorch-cxx11-abi-shared-with-deps-1.4.0.zip"],
24-
sha256 = "f214bfde532877aa5d4e0803e51a28fa8edd97b6a44b6615f75a70352b6b542e"
23+
urls = ["https://download.pytorch.org/libtorch/cu101/libtorch-shared-with-deps-1.4.0.zip"],
24+
sha256 = "062d27cc36e9406771328729bd89c73205ee124cbdb0acdeac998ca3b950d73b"
2525
)
2626

2727
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
@@ -36,19 +36,19 @@ rules_pkg_dependencies()
3636

3737
new_local_repository(
3838
name = "cuda",
39-
path = "/usr/local/cuda-10.1/targets/x86_64-linux/",
39+
path = "/usr/local/cuda-10.1",
4040
build_file = "@//third_party/cuda:BUILD",
4141
)
4242

4343
new_local_repository(
4444
name = "cudnn",
45-
path = "/usr/",
45+
path = "/usr/local/cuda-10.1",
4646
build_file = "@//third_party/cudnn:BUILD"
4747
)
4848

4949
new_local_repository(
5050
name = "tensorrt",
51-
path = "/usr/",
51+
path = "/usr/local/cuda-10.1/TensorRT-6.0.1.5",
5252
build_file = "@//third_party/tensorrt:BUILD"
5353
)
5454

core/conversion/converters/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ cc_library(
1616
"impl/element_wise.cpp",
1717
"impl/linear.cpp",
1818
"impl/pooling.cpp",
19-
"impl/scale.cpp",
2019
"impl/softmax.cpp",
2120
"impl/unary.cpp",
2221
],

core/conversion/converters/impl/scale.cpp

Lines changed: 0 additions & 81 deletions
This file was deleted.

tests/core/converters/test_scale.cpp

Lines changed: 0 additions & 25 deletions
This file was deleted.

third_party/cudnn/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cc_library(
99

1010
cc_import(
1111
name = "cudnn_lib",
12-
shared_library = "lib/x86_64-linux-gnu/libcudnn.so",
12+
shared_library = "lib64/libcudnn.so",
1313
visibility = ["//visibility:private"],
1414
)
1515

third_party/libtorch/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cc_library(
6363
cc_library(
6464
name = "c10_deps",
6565
srcs = [
66-
"lib/libgomp-753e6e92.so.1",
66+
"lib/libgomp-7c85b1e2.so.1",
6767
"lib/libcudart-1b201d85.so.10.1",
6868
]
6969
)
@@ -92,6 +92,6 @@ cc_library(
9292
name = 'caffe2_deps',
9393
srcs = [
9494
'lib/libnvToolsExt-3965bdd0.so.1',
95-
'lib/libgomp-753e6e92.so.1'
95+
'lib/libgomp-7c85b1e2.so.1'
9696
]
9797
)

third_party/tensorrt/BUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cc_library(
1414

1515
cc_import(
1616
name = "nvinfer_lib",
17-
shared_library = "lib/x86_64-linux-gnu/libnvinfer.so",
17+
shared_library = "lib/libnvinfer.so",
1818
visibility = ["//visibility:private"],
1919
)
2020

@@ -34,7 +34,7 @@ cc_library(
3434

3535
cc_import(
3636
name = "nvparsers_lib",
37-
shared_library = "lib/x86_64-linux-gnu/libnvparsers.so",
37+
shared_library = "lib/libnvparsers.so",
3838
visibility = ["//visibility:private"],
3939
)
4040

@@ -66,7 +66,7 @@ cc_library(
6666

6767
cc_import(
6868
name = "nvonnxparser_lib",
69-
shared_library = "lib/x86_64-linux-gnu/libnvonnxparser.so",
69+
shared_library = "lib/libnvonnxparser.so",
7070
visibility = ["//visibility:private"],
7171
)
7272

@@ -95,7 +95,7 @@ cc_library(
9595

9696
cc_import(
9797
name = "nvonnxparser_runtime_lib",
98-
shared_library = "lib/x86_64-linux-gnu/libnvonnxparser_runtime.so",
98+
shared_library = "lib/libnvonnxparser_runtime.so",
9999
visibility = ["//visibility:public"],
100100
)
101101

@@ -120,7 +120,7 @@ cc_library(
120120

121121
cc_import(
122122
name = "nvcaffeparser_lib",
123-
shared_library = "lib/x86_64-linux-gnu/libnvcaffe_parsers.so",
123+
shared_library = "lib/libnvcaffe_parsers.so",
124124
visibility = ["//visibility:private"],
125125
)
126126

@@ -145,7 +145,7 @@ cc_library(
145145

146146
cc_import(
147147
name = "nvinferplugin_lib",
148-
shared_library = "lib/x86_64-linux-gnu/libnvinfer_plugin.so",
148+
shared_library = "lib/libnvinfer_plugin.so",
149149
visibility = ["//visibility:private"],
150150
)
151151

0 commit comments

Comments
 (0)