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

Method __init__

tensorrt_llm/quantization/layers.py:91–94  ·  view source on GitHub ↗
(self, axis: int = -1)

Source from the content-addressed store, hash-verified

89 """
90
91 def __init__(self, axis: int = -1) -> None:
92 super().__init__()
93 self.scaling_factor = Parameter(shape=(), dtype='float32')
94 self.axis = axis
95
96 def forward(self, input):
97 return dequantize(input, self.scaling_factor.value, self.axis)

Callers

nothing calls this directly

Calls 2

ParameterClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected