Splitting String Characters into a Torch Tensor
<p>I have 2 Strings in Lua: </p>

<pre><code>a = '01234'
b = '12345'
</code></pre>

<p>I want to split them into characters and load them into a Torch Tensor, like this: </p>

<pre><code>tens = torch.Tensor{{0, 1, 2, 3, 4}, {1, 2, 3, 4, 5}} 
</code></pre>

<p>Thanks. </p>