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

Method __init__

tensorrt_llm/models/bert/model.py:416–419  ·  view source on GitHub ↗
(self, hidden_size, dtype)

Source from the content-addressed store, hash-verified

414class BertPooler(Module):
415
416 def __init__(self, hidden_size, dtype):
417 super().__init__()
418 self.dense = Linear(hidden_size, hidden_size, dtype=dtype)
419 self.activation = ACT2FN['tanh']
420
421 def forward(self, hidden_states, input_lengths, remove_input_padding):
422 if not remove_input_padding:

Callers

nothing calls this directly

Calls 2

LinearClass · 0.50
__init__Method · 0.45

Tested by

no test coverage detected