ONE - On-device Neural Engine
|
Variables | |
parser = argparse.ArgumentParser() | |
type | |
str | |
required | |
args = parser.parse_args() | |
input_dir = args.input_dir | |
output_dir = args.output_dir | |
driver = args.driver | |
dump = args.dump | |
model = args.model | |
module = importlib.import_module('qparam.' + model) | |
str | input_circle = input_dir + '.circle' |
str | output_circle = output_dir + f'/{module._name_}/output.circle' |
str | qparam_dir = output_dir + f'/{module._name_}/qparam.json' |
str | h5_path = output_dir + f'/{module._name_}/output.h5' |
test_runner = TestRunner(output_dir) | |
process = subprocess.run([driver, input_circle, qparam_dir, output_circle], check=True) | |
q_implant_qparam_test.args = parser.parse_args() |
Definition at line 31 of file q_implant_qparam_test.py.
q_implant_qparam_test.driver = args.driver |
Definition at line 35 of file q_implant_qparam_test.py.
q_implant_qparam_test.dump = args.dump |
Definition at line 36 of file q_implant_qparam_test.py.
str q_implant_qparam_test.h5_path = output_dir + f'/{module._name_}/output.h5' |
Definition at line 44 of file q_implant_qparam_test.py.
Definition at line 41 of file q_implant_qparam_test.py.
q_implant_qparam_test.input_dir = args.input_dir |
Definition at line 33 of file q_implant_qparam_test.py.
q_implant_qparam_test.model = args.model |
Definition at line 37 of file q_implant_qparam_test.py.
q_implant_qparam_test.module = importlib.import_module('qparam.' + model) |
Definition at line 39 of file q_implant_qparam_test.py.
str q_implant_qparam_test.output_circle = output_dir + f'/{module._name_}/output.circle' |
Definition at line 42 of file q_implant_qparam_test.py.
q_implant_qparam_test.output_dir = args.output_dir |
Definition at line 34 of file q_implant_qparam_test.py.
q_implant_qparam_test.parser = argparse.ArgumentParser() |
Definition at line 25 of file q_implant_qparam_test.py.
q_implant_qparam_test.process = subprocess.run([driver, input_circle, qparam_dir, output_circle], check=True) |
Definition at line 69 of file q_implant_qparam_test.py.
str q_implant_qparam_test.qparam_dir = output_dir + f'/{module._name_}/qparam.json' |
Definition at line 43 of file q_implant_qparam_test.py.
q_implant_qparam_test.required |
Definition at line 26 of file q_implant_qparam_test.py.
q_implant_qparam_test.str |
Definition at line 26 of file q_implant_qparam_test.py.
q_implant_qparam_test.test_runner = TestRunner(output_dir) |
Definition at line 58 of file q_implant_qparam_test.py.
q_implant_qparam_test.type |
Definition at line 26 of file q_implant_qparam_test.py.