Closed skwerlman closed 8 years ago
I simply added an assert around the io.open which grabs input.txt. Now, instead of:
io.open
./util/CharSplitLMMinibatchLoader.lua:139: attempt to index global 'f' (a nil value)
the user sees something similar to:
./util/CharSplitLMMinibatchLoader.lua:133: data/tinyshakespeare/input.txt: No such file or directory
I also fixed f being global.
f
Looks great, thank you!
I simply added an assert around the
io.open
which grabs input.txt. Now, instead of:the user sees something similar to:
I also fixed
f
being global.