parameters: ()
return_statement: return lib_path
docstring: Find mxnet library.
docstring_summary: Find mxnet library.
docstring_tokens: Find mxnet library .
function: def _find_lib_path():
      """Find mxnet library."""
      curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
      api_path = os.path.join(curr_path, '../../lib/')
      dll_path = [curr_path, api_path]
      dll_path = [os.path.join(p, 'libmxnet.so') for p in dll_path] + \
          [os.path.join(p, 'libmxnet_predict.so') for p in dll_path]
      lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)]
      if len(lib_path) == 0:
          raise RuntimeError('Cannot find the files.\n' +
                             'List of candidates:\n' + str('\n'.join(dll_path)))
      return lib_path
function_tokens: def _find_lib_path ( ) : curr_path = os . path . dirname ( os . path . abspath ( os . path . expanduser ( __file__ ) ) ) api_path = os . path . join ( curr_path , '../../lib/' ) dll_path = [ curr_path , api_path ] dll_path = [ os . path . join ( p , 'libmxnet.so' ) for p in dll_path ] + [ os . path . join ( p , 'libmxnet_predict.so' ) for p in dll_path ] lib_path = [ p for p in dll_path if os . path . exists ( p ) and os . path . isfile ( p ) ] if len ( lib_path ) == 0 : raise RuntimeError ( 'Cannot find the files.\n' + 'List of candidates:\n' + str ( '\n' . join ( dll_path ) ) ) return lib_path