MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / nbytes

Method nbytes

tools/Polygraphy/polygraphy/cuda/cuda.py:301–305  ·  view source on GitHub ↗

The number of bytes in the memory region.

(self)

Source from the content-addressed store, hash-verified

299
300 @property
301 def nbytes(self):
302 """
303 The number of bytes in the memory region.
304 """
305 return util.volume(self.shape) * self.itemsize
306
307 @func.constantmethod
308 def copy_to(self, host_buffer, stream=None):

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.80

Tested by

no test coverage detected