tensorrt-cu12-bindings 10.7.0.post1__cp39-none-win_amd64.whl → 10.8.0.43__cp39-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tensorrt-cu12-bindings might be problematic. Click here for more details.
- tensorrt_bindings/__init__.py +5 -1
- tensorrt_bindings/plugin/__init__.py +1 -1
- tensorrt_bindings/plugin/_plugin_class.py +3 -0
- tensorrt_bindings/plugin/_tensor.py +28 -3
- tensorrt_bindings/tensorrt.cp39-win_amd64.pyd +0 -0
- {tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/METADATA +1 -1
- tensorrt_cu12_bindings-10.8.0.43.dist-info/RECORD +17 -0
- tensorrt_cu12_bindings-10.7.0.post1.dist-info/RECORD +0 -17
- {tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/LICENSE.txt +0 -0
- {tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/WHEEL +0 -0
- {tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/top_level.txt +0 -0
- {tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/zip-safe +0 -0
tensorrt_bindings/__init__.py
CHANGED
|
@@ -35,6 +35,9 @@ if not _libs_wheel_imported and sys.platform.startswith("win"):
|
|
|
35
35
|
# load the bindings. If we imported the tensorrt_libs wheel, then that should have taken care of it for us.
|
|
36
36
|
def find_lib(name):
|
|
37
37
|
paths = os.environ["PATH"].split(os.path.pathsep)
|
|
38
|
+
# Add ../tensorrt.libs to the search path. This allows repackaging non-standalone TensorRT wheels as standalone
|
|
39
|
+
# using delvewheel (with the --no-mangle-all flag set) to work properly.
|
|
40
|
+
paths.append(os.path.join(os.path.dirname(__file__), os.pardir, "tensorrt.libs"))
|
|
38
41
|
for path in paths:
|
|
39
42
|
libpath = os.path.join(path, name)
|
|
40
43
|
if os.path.isfile(libpath):
|
|
@@ -74,7 +77,7 @@ del _libs_wheel_imported
|
|
|
74
77
|
|
|
75
78
|
from .tensorrt import *
|
|
76
79
|
|
|
77
|
-
__version__ = "10.
|
|
80
|
+
__version__ = "10.8.0.43"
|
|
78
81
|
|
|
79
82
|
|
|
80
83
|
# Provides Python's `with` syntax
|
|
@@ -194,6 +197,7 @@ def _itemsize(trt_type):
|
|
|
194
197
|
uint8: 1,
|
|
195
198
|
fp8: 1,
|
|
196
199
|
int4: 0.5,
|
|
200
|
+
fp4: 0.5,
|
|
197
201
|
}
|
|
198
202
|
if trt_type in mapping:
|
|
199
203
|
return mapping[trt_type]
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import tensorrt as trt
|
|
19
19
|
|
|
20
20
|
logger = trt.Logger()
|
|
21
|
-
logger.log(trt.Logger.WARNING,
|
|
21
|
+
logger.log(trt.Logger.WARNING, "Functionality provided through tensorrt.plugin module is experimental.")
|
|
22
22
|
|
|
23
23
|
# export.public_api() will expose things here. To make sure that happens, we just need to
|
|
24
24
|
# import all the submodules so that the decorator is actually executed (__discover_modules() below).
|
|
@@ -136,6 +136,12 @@ class ShapeExpr:
|
|
|
136
136
|
def _expr(self):
|
|
137
137
|
return self._dim_expr
|
|
138
138
|
|
|
139
|
+
def _clone(self):
|
|
140
|
+
ret = ShapeExpr(self + 0)
|
|
141
|
+
ret._is_dummy = self._is_dummy
|
|
142
|
+
ret._is_size_tensor = self._is_size_tensor
|
|
143
|
+
return ret
|
|
144
|
+
|
|
139
145
|
@public_api()
|
|
140
146
|
class SizeTensorShapeExpr(ShapeExpr):
|
|
141
147
|
"""
|
|
@@ -229,6 +235,10 @@ class ShapeExprs:
|
|
|
229
235
|
def __repr__(self):
|
|
230
236
|
return f"ShapeExprs[{', '.join([s.__repr__() for s in self._shapes])}]"
|
|
231
237
|
|
|
238
|
+
def _clone(self):
|
|
239
|
+
ret = ShapeExprs.from_tuple((e._clone() for e in self._shapes))
|
|
240
|
+
ret._is_dummy = self._is_dummy
|
|
241
|
+
return ret
|
|
232
242
|
|
|
233
243
|
# Numerical representation of a tensor shape
|
|
234
244
|
@public_api()
|
|
@@ -250,6 +260,9 @@ class Shape:
|
|
|
250
260
|
elif isinstance(tensor_desc, tuple):
|
|
251
261
|
self._shapes = trt.Dims(tensor_desc)
|
|
252
262
|
self._length = len(self._shapes)
|
|
263
|
+
elif tensor_desc is None:
|
|
264
|
+
self._length = 0
|
|
265
|
+
self._shapes = trt.Dims(0)
|
|
253
266
|
else:
|
|
254
267
|
raise ValueError("Unsupported type used for constructing trt.plugin.Shape! tensor_desc must be a Tuple[int], trt.DynamicPluginTensorDesc, or trt.PluginTensorDesc")
|
|
255
268
|
|
|
@@ -335,6 +348,10 @@ class Shape:
|
|
|
335
348
|
raise IndexError("Index out of range")
|
|
336
349
|
self._shapes[index] = val
|
|
337
350
|
|
|
351
|
+
def _clone(self):
|
|
352
|
+
ret = Shape()
|
|
353
|
+
ret.__dict__.update(self.__dict__)
|
|
354
|
+
return ret
|
|
338
355
|
|
|
339
356
|
# Descriptor for a tensor
|
|
340
357
|
# A `TensorDesc` never contains nor refers to any tensor data.
|
|
@@ -416,8 +433,7 @@ class TensorDesc:
|
|
|
416
433
|
def _(inp: tensorrt.plugin.TensorDesc) -> tensorrt.plugin.TensorDesc:
|
|
417
434
|
return inp.like()
|
|
418
435
|
"""
|
|
419
|
-
cloned =
|
|
420
|
-
cloned.__dict__.update(self.__dict__)
|
|
436
|
+
cloned = self._clone()
|
|
421
437
|
cloned._immutable = False
|
|
422
438
|
return cloned
|
|
423
439
|
|
|
@@ -436,10 +452,19 @@ class TensorDesc:
|
|
|
436
452
|
def _(inp: tensorrt.plugin.TensorDesc) -> tensorrt.plugin.TensorDesc:
|
|
437
453
|
return inp.aliased()
|
|
438
454
|
"""
|
|
455
|
+
cloned = self._clone()
|
|
456
|
+
cloned._immutable = False
|
|
457
|
+
cloned._aliased_to = self
|
|
458
|
+
cloned._immutable = True
|
|
459
|
+
return cloned
|
|
460
|
+
|
|
461
|
+
def _clone(self) -> "TensorDesc":
|
|
439
462
|
cloned = TensorDesc()
|
|
440
463
|
cloned.__dict__.update(self.__dict__)
|
|
441
464
|
cloned._immutable = False
|
|
442
|
-
cloned.
|
|
465
|
+
cloned._shape_expr = self._shape_expr._clone()
|
|
466
|
+
if self._shape is not None:
|
|
467
|
+
cloned._shape = self._shape._clone()
|
|
443
468
|
cloned._immutable = True
|
|
444
469
|
return cloned
|
|
445
470
|
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
tensorrt_bindings/__init__.py,sha256=3BfUMaDS2IRd4-3xARU6tGVoNePCDDFX1L1VfGK4Bjg,6203
|
|
2
|
+
tensorrt_bindings/tensorrt.cp39-win_amd64.pyd,sha256=_qlrB2fdS8VKQLOG1javM2NV-VkGZYb_QktGsZmN6xw,2242560
|
|
3
|
+
tensorrt_bindings/plugin/__init__.py,sha256=C_9idhCxsIHfoBxidwwr6FHlkZVy5kjh-VnzTsGszcQ,1557
|
|
4
|
+
tensorrt_bindings/plugin/_autotune.py,sha256=xlNut0qB9rlgyhfV4QyVJEsT50r3PuFz1xk0pnDiVA8,12493
|
|
5
|
+
tensorrt_bindings/plugin/_export.py,sha256=xJE2C9TTX-ons81GUBYbf4djv44bpyi0RzhzJlxJo4I,1189
|
|
6
|
+
tensorrt_bindings/plugin/_lib.py,sha256=PfnV11UPHhadsTosIqgQBOpbx0pCfzHjXB6rS_xZ-gc,21378
|
|
7
|
+
tensorrt_bindings/plugin/_plugin_class.py,sha256=7v09Ydjo9uMMIX65-dSTEzTZmavNEgnwIjpTWXAhqsc,12212
|
|
8
|
+
tensorrt_bindings/plugin/_tensor.py,sha256=3odch-QzLwyt8sdSMHKBv8RSyj1SzD41PpybN9WA_Jg,28941
|
|
9
|
+
tensorrt_bindings/plugin/_top_level.py,sha256=mxZk0M-v8aP1uMVziX6FDBxFQPq3Cp6gd0Iq09xRUro,4708
|
|
10
|
+
tensorrt_bindings/plugin/_utils.py,sha256=Hl2PslERH5X0UMArk_k8GKag7ME0pW0RjQcTX3zYsoc,2741
|
|
11
|
+
tensorrt_bindings/plugin/_validate.py,sha256=nHDLvekos2hI5fDoU6KhDeNQh_NdmN3NRM2xWhyanuY,14477
|
|
12
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/LICENSE.txt,sha256=yGkV_ZW7773aMTWqzj5q1rRhKEbcvbxdL1o4sTndiLQ,47141
|
|
13
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/METADATA,sha256=Gk8UlGoCWlTbor-rCLZPAwof6ky8u_cRs1WnmFPFyjI,606
|
|
14
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/WHEEL,sha256=T8VPDjot1YI5-NaRzS6kIMlJNVl0SSGa_dm-8Fprszg,99
|
|
15
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/top_level.txt,sha256=QuFeuaCbu20Zk7dFQs6JlSlk-ZLCkirage8XegBmyP0,18
|
|
16
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
17
|
+
tensorrt_cu12_bindings-10.8.0.43.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
tensorrt_bindings/__init__.py,sha256=Y24vpa4rxvmISEkDFeu8BJgHAAnmwV-SGHKF86wYR5o,5892
|
|
2
|
-
tensorrt_bindings/tensorrt.cp39-win_amd64.pyd,sha256=t7tVv7FRi1d2N6gduseD2D27Fx_yVNMyZ7Y32AZJujg,2174464
|
|
3
|
-
tensorrt_bindings/plugin/__init__.py,sha256=28b1lyihZnjVIJzh1h2Za_XSb5nJXOBS9w8LyD0WyLw,1558
|
|
4
|
-
tensorrt_bindings/plugin/_autotune.py,sha256=xlNut0qB9rlgyhfV4QyVJEsT50r3PuFz1xk0pnDiVA8,12493
|
|
5
|
-
tensorrt_bindings/plugin/_export.py,sha256=xJE2C9TTX-ons81GUBYbf4djv44bpyi0RzhzJlxJo4I,1189
|
|
6
|
-
tensorrt_bindings/plugin/_lib.py,sha256=PfnV11UPHhadsTosIqgQBOpbx0pCfzHjXB6rS_xZ-gc,21378
|
|
7
|
-
tensorrt_bindings/plugin/_plugin_class.py,sha256=6AZKcpES3D8l8VSq0691Fmb1yeTvfiJazK861Lm1_qw,12145
|
|
8
|
-
tensorrt_bindings/plugin/_tensor.py,sha256=BefibyFqrY1Vi4K1Yqk6CRda8Nn1cs6lDMRV4dugIX0,28136
|
|
9
|
-
tensorrt_bindings/plugin/_top_level.py,sha256=mxZk0M-v8aP1uMVziX6FDBxFQPq3Cp6gd0Iq09xRUro,4708
|
|
10
|
-
tensorrt_bindings/plugin/_utils.py,sha256=Hl2PslERH5X0UMArk_k8GKag7ME0pW0RjQcTX3zYsoc,2741
|
|
11
|
-
tensorrt_bindings/plugin/_validate.py,sha256=nHDLvekos2hI5fDoU6KhDeNQh_NdmN3NRM2xWhyanuY,14477
|
|
12
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/LICENSE.txt,sha256=yGkV_ZW7773aMTWqzj5q1rRhKEbcvbxdL1o4sTndiLQ,47141
|
|
13
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/METADATA,sha256=SjIOccD0yPfvX7vido9xh_ppWOiFVf-AaT5OyV8txJg,609
|
|
14
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/WHEEL,sha256=T8VPDjot1YI5-NaRzS6kIMlJNVl0SSGa_dm-8Fprszg,99
|
|
15
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/top_level.txt,sha256=QuFeuaCbu20Zk7dFQs6JlSlk-ZLCkirage8XegBmyP0,18
|
|
16
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
17
|
-
tensorrt_cu12_bindings-10.7.0.post1.dist-info/RECORD,,
|
|
File without changes
|
{tensorrt_cu12_bindings-10.7.0.post1.dist-info → tensorrt_cu12_bindings-10.8.0.43.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|