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

Method __init__

demo/HuggingFace/BART/export.py:118–123  ·  view source on GitHub ↗
(self, decoder, lm_head, final_logits_bias, config)

Source from the content-addressed store, hash-verified

116 """
117
118 def __init__(self, decoder, lm_head, final_logits_bias, config):
119 super().__init__()
120 self.decoder = decoder
121 self.lm_head = lm_head
122 self.bias = final_logits_bias
123 self.config = config
124
125 @staticmethod
126 def _reorder_cache(past, beam_idx):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected