It seems this bug is fixed in the master branch, although I couldn’t reproduce the issue using 0.4.0.
Maybe I was just lucky with the uninitialized values.
However, you can just use the tensor as you wish. Just avoid printing an uninitialized tensor.