local opt_clone = torch.deserialize(torch.serialize(opt))
It is from line 84 of
https://github.com/jcjohnson/torch-rnn/blob/master/train.lua
It makes a copy of opt rather than a pointer that aliases the same instance that opt is pointing to.
Note that there are probably better ways to do that than this way.