Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ __init__
Method
__init__
demo/HuggingFace/BART/export.py:174–176 ·
view source on GitHub ↗
(self, encoder)
Source
from the content-addressed store, hash-verified
172
173
class
TorchModule(Module, GenerationMixin):
174
def
__init__(self, encoder):
175
super().__init__()
176
self.encoder = encoder
177
178
def
forward(self, *input, **kwargs):
179
return
self.encoder(*input, **kwargs)[0]
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected