def _get_tensor_value(tensor):
    'Gets the value of a torch Tensor.'
    return tensor.cpu().detach().numpy()
Gets the value of a torch Tensor.
def _get_tensor_value(tensor):
    
    return tensor.cpu().detach().numpy()