xlnstorch.LNSTensor.item

Contents

xlnstorch.LNSTensor.item#

LNSTensor.item()#

Returns the value of the LNSTensor as a Python number. This method is only valid for LNSTensors that contain a single element.

Return type:

float