torch:item
(torch:item tensor)
Returns the single element of a scalar (or one-element) tensor as a number -- the way a loss value leaves the graph for printing or logging. A tensor with more than one element signals.
(torch:item tensor)
Returns the single element of a scalar (or one-element) tensor as a number -- the way a loss value leaves the graph for printing or logging. A tensor with more than one element signals.