theano/tensor/sort.py
def _check_tensor_is_scalar(var):
    '''
    Checks if a tensor variable is scalar, raise ValueError otherwise
    '''
    msg = '%(var)s is expected to be 0d tensor, got %(ndim)d'
    if var.ndim != 0:
        raise ValueError(
            msg % (var, var.ndim))

    Checks if a tensor variable is scalar, raise ValueError otherwise
    
Checks if a tensor variable is scalar, raise ValueError otherwise
Checks if a tensor variable is scalar raise ValueError otherwise
def _check_tensor_is_scalar(var):
    msg = '%(var)s is expected to be 0d tensor, got %(ndim)d'
    if var.ndim != 0:
        raise ValueError(
            msg % (var, var.ndim))
def _check_tensor_is_scalar ( var ) : msg = '%(var)s is expected to be 0d tensor, got %(ndim)d' if var . ndim != 0 : raise ValueError ( msg % ( var , var . ndim ) )
Checks if a tensor variable is scalar, raise ValueError otherwise
Checks if a tensor variable is scalar raise ValueError otherwise
'''
    Checks if a tensor variable is scalar, raise ValueError otherwise
    '''
var