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

Method _all

tensorrt_llm/quantization/mode.py:114–115  ·  view source on GitHub ↗
(self, bits, mask=VALID_FLAGS)

Source from the content-addressed store, hash-verified

112
113 # All the bits set? You can restrict the test to the bits indicated by "mask".
114 def _all(self, bits, mask=VALID_FLAGS):
115 return (self & mask) == bits
116
117 # Is one of the bits of the mask set?
118 def _any(self, bits):

Callers 4

is_int8_weight_onlyMethod · 0.95
is_int4_weight_onlyMethod · 0.95
test_allMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_allMethod · 0.64