next retrieve the next item from the iterator by calling its next() method.

here, it returns the first parameter from the class.


Well, you can create a Variable as you wish, but you need to specify the data type under such circumstance. By new, we constructs a new tensor of the same data type(as the first parameter).