parameters: ()
return_statement: return compute
docstring: Unified erf interface for both scalar and tensor
docstring_summary: Unified erf interface for both scalar and tensor
docstring_tokens: Unified erf interface for both scalar and tensor
function: def erf():
      """Unified erf interface for both scalar and tensor
      """
      def compute(value):
          if isinstance(value, Number):
              if sc is not None:
                  return sc.erf(value)
              else:
                  raise ValueError('Numbers are not supported as input if scipy is not installed')
          return npx.erf(value)
      return compute
function_tokens: def erf ( ) : def compute ( value ) : if isinstance ( value , Number ) : if sc is not None : return sc . erf ( value ) else : raise ValueError ( 'Numbers are not supported as input if scipy is not installed' ) return npx . erf ( value ) return compute