MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / __hash__

Method __hash__

tensorrt_llm/functional.py:586–590  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 return False
585
586 def __hash__(self):
587 if self.is_trt_wrapper():
588 return id(self.trt_tensor)
589 else:
590 return id(None)
591
592 def __repr__(self):
593 return f"TensorRT LLM Tensor: {self.name=} {self.dtype=} {self.shape=}"

Callers

nothing calls this directly

Calls 1

is_trt_wrapperMethod · 0.95

Tested by

no test coverage detected