Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/examples
/ generate.py
File
generate.py
word_language_model/generate.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
###############################################################################
2
# Language Modeling on Wikitext-2
3
#
4
# This file generates new sentences sampled from the language model.
Callers
nothing calls this directly
Calls
1
init_hidden
Method · 0.80
Tested by
no test coverage detected