tensorrt-cu12-bindings 10.7.0.post1__cp310-none-win_amd64.whl → 10.8.0.43__cp310-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.

@@ -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.7.0.post1"
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, f"Functionality provided through tensorrt.plugin module is experimental.")
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).
@@ -69,6 +69,9 @@ class _TemplatePlugin(
69
69
  def get_capability_interface(self, type):
70
70
  return self
71
71
 
72
+ def get_num_outputs(self):
73
+ return self.num_outputs
74
+
72
75
  def get_output_data_types(self, input_types, ranks):
73
76
  self.input_types = input_types
74
77
 
@@ -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 = TensorDesc()
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._aliased_to = self
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tensorrt_cu12_bindings
3
- Version: 10.7.0.post1
3
+ Version: 10.8.0.43
4
4
  Summary: A high performance deep learning inference library
5
5
  Home-page: https://github.com/nvidia/tensorrt
6
6
  Download-URL: https://developer.nvidia.com/tensorrt
@@ -0,0 +1,17 @@
1
+ tensorrt_bindings/__init__.py,sha256=3BfUMaDS2IRd4-3xARU6tGVoNePCDDFX1L1VfGK4Bjg,6203
2
+ tensorrt_bindings/tensorrt.cp310-win_amd64.pyd,sha256=K0KQHyMAhOnwNSWRUcCjokiX0TDAFyuCJbbatvYvGy0,2675712
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=xKD-W076Kxa9P8HVHMBFDAZ44LgNHrPjF081MKvpixU,100
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.cp310-win_amd64.pyd,sha256=T4Ftb939k0o_cRezMOgA8YSeCxf_CQ3Rgup9w4L0134,2596352
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=xKD-W076Kxa9P8HVHMBFDAZ44LgNHrPjF081MKvpixU,100
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,,