MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / __xor__

Method __xor__

tensorrt_llm/functional.py:595–602  ·  view source on GitHub ↗

Maps to functional.gt or functional.eq.

(self, b)

Source from the content-addressed store, hash-verified

593 return f"TensorRT LLM Tensor: {self.name=} {self.dtype=} {self.shape=}"
594
595 def __xor__(self, b):
596 '''
597 Maps to functional.gt or functional.eq.
598 '''
599 print(f"self.shape: {self.shape}, b.shape: {b.shape}")
600 a, b = broadcast_helper(self, b)
601 print(f"a.shape: {a.shape}, b.shape: {b.shape}")
602 return op_xor(a, b)
603
604
605def _create_tensor(trt_tensor: trt.ITensor, producer: trt.ILayer) -> Tensor:

Callers

nothing calls this directly

Calls 1

broadcast_helperFunction · 0.85

Tested by

no test coverage detected