ONE - On-device Neural Engine
Loading...
Searching...
No Matches
utils.py File Reference

Go to the source code of this file.

Namespaces

namespace  utils
 

Functions

 utils.one_cmd_list ()
 
 utils.add_default_arg (parser)
 
 utils.add_default_arg_no_CS (parser)
 
 utils.is_accumulated_arg (arg, driver)
 
 utils.is_valid_attr (args, attr)
 
configparser.ConfigParser utils.get_config_parser ()
 
 utils.parse_cfg (Union[str, None] config_path, str section_to_parse, args, bool quiet=False)
 
 utils.print_version_and_exit (file_path)
 
 utils.safemain (main, mainpath)
 
 utils.run_ret (cmd, *str one_cmd=None, err_prefix=None, logfile=None)
 
 utils.run (cmd, *str one_cmd=None, err_prefix=None, logfile=None)
 
 utils.remove_prefix (str, prefix)
 
 utils.remove_suffix (str, suffix)
 
 utils.get_optimization_list (get_name=False)
 
 utils.get_target_list (get_name=False)
 
Optional[ArgumentParser] utils.get_arg_parser (Optional[str] backend, str cmd, Optional[str] target)
 
 utils.detect_one_import_drivers (search_path)
 

Variables

dict utils.ONE_CMD