MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Method __init__

beginner_source/chatbot_tutorial.py:1124–1127  ·  view source on GitHub ↗
(self, encoder, decoder)

Source from the content-addressed store, hash-verified

1122
1123class GreedySearchDecoder(nn.Module):
1124 def __init__(self, encoder, decoder):
1125 super(GreedySearchDecoder, self).__init__()
1126 self.encoder = encoder
1127 self.decoder = decoder
1128
1129 def forward(self, input_seq, input_length, max_length):
1130 # Forward input through encoder model

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected