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

Method __init__

demo/HuggingFace/T5/export.py:195–198  ·  view source on GitHub ↗
(self, decoder, device = "cpu")

Source from the content-addressed store, hash-verified

193
194class T5DecoderCrossAttentionKVGenerator(Module):
195 def __init__(self, decoder, device = "cpu"):
196 super().__init__()
197 self.decoder = decoder
198 self.device = device
199
200 def forward(self, encoder_hidden_states):
201 '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected