torch.setenv(function or userdata, table)
Assign table as the Lua environment of the given function or the given userdata. To know more about environments, please read the documentation of lua_setfenv() and lua_getfenv().
table
function
userdata
lua_setfenv()
lua_getfenv()