ONE - On-device Neural Engine
|
Variables | |
parser = argparse.ArgumentParser() | |
type | |
str | |
required | |
args = parser.parse_args() | |
driver = args.driver | |
str | tflite_model = args.name + ".tflite" |
str | circle_model = args.name + ".circle" |
str | partition_conn_ini = args.name + ".conn.ini" |
str | partition_conn_json = args.name + ".conn.json" |
str | expected_count = args.name + ".excnt" |
expected_count_line = expected_count_file.readline() | |
json_data = json.load(json_file) | |
parts_value = json_data["parts"] | |
interpreter = tf.lite.Interpreter(tflite_model) | |
full_signatures = interpreter._get_full_signature_list() | |
full_signatures_outputs_remap = None | |
signature_serving_default = full_signatures.get('serving_default', None) | |
signature_outputs = signature_serving_default['outputs'] | |
num_inputs = len(interpreter.get_input_details()) | |
input_details = interpreter.get_input_details()[i] | |
input_details_dtype = input_details["dtype"] | |
input_details_shape = input_details["shape"] | |
input_data | |
list | partition_command |
flush | |
check | |
inpt_output_details = interpreter.get_output_details() | |
output_details = inpt_output_details[idx] | |
output_dtype = output_details["dtype"] | |
output_data = np.fromfile(circle_model + ".output" + str(idx), output_dtype) | |
shape_file = open(circle_model + ".output" + str(idx) + ".shape", 'r') | |
list | output_shape = [int(i) for i in shape_file.read().split(',')] |
luci_output_data = np.reshape(output_data, output_shape) | |
output_tensor = output_details["index"] | |
intp_output_data = interpreter.get_tensor(output_tensor) | |
rtol | |
atol | |
part_eval_one.args = parser.parse_args() |
Definition at line 21 of file part_eval_one.py.
part_eval_one.atol |
Definition at line 122 of file part_eval_one.py.
part_eval_one.check |
Definition at line 105 of file part_eval_one.py.
str part_eval_one.circle_model = args.name + ".circle" |
Definition at line 25 of file part_eval_one.py.
part_eval_one.driver = args.driver |
Definition at line 23 of file part_eval_one.py.
str part_eval_one.expected_count = args.name + ".excnt" |
Definition at line 28 of file part_eval_one.py.
part_eval_one.expected_count_line = expected_count_file.readline() |
Definition at line 33 of file part_eval_one.py.
part_eval_one.flush |
Definition at line 103 of file part_eval_one.py.
part_eval_one.full_signatures = interpreter._get_full_signature_list() |
Definition at line 57 of file part_eval_one.py.
list part_eval_one.full_signatures_outputs_remap = None |
Definition at line 58 of file part_eval_one.py.
part_eval_one.inpt_output_details = interpreter.get_output_details() |
Definition at line 108 of file part_eval_one.py.
part_eval_one.input_data |
Definition at line 75 of file part_eval_one.py.
part_eval_one.input_details = interpreter.get_input_details()[i] |
Definition at line 71 of file part_eval_one.py.
part_eval_one.input_details_dtype = input_details["dtype"] |
Definition at line 72 of file part_eval_one.py.
part_eval_one.input_details_shape = input_details["shape"] |
Definition at line 73 of file part_eval_one.py.
part_eval_one.interpreter = tf.lite.Interpreter(tflite_model) |
Definition at line 53 of file part_eval_one.py.
part_eval_one.intp_output_data = interpreter.get_tensor(output_tensor) |
Definition at line 119 of file part_eval_one.py.
part_eval_one.json_data = json.load(json_file) |
Definition at line 38 of file part_eval_one.py.
part_eval_one.luci_output_data = np.reshape(output_data, output_shape) |
Definition at line 115 of file part_eval_one.py.
part_eval_one.num_inputs = len(interpreter.get_input_details()) |
Definition at line 69 of file part_eval_one.py.
part_eval_one.output_data = np.fromfile(circle_model + ".output" + str(idx), output_dtype) |
Definition at line 112 of file part_eval_one.py.
part_eval_one.output_details = inpt_output_details[idx] |
Definition at line 110 of file part_eval_one.py.
part_eval_one.output_dtype = output_details["dtype"] |
Definition at line 111 of file part_eval_one.py.
list part_eval_one.output_shape = [int(i) for i in shape_file.read().split(',')] |
Definition at line 114 of file part_eval_one.py.
part_eval_one.output_tensor = output_details["index"] |
Definition at line 116 of file part_eval_one.py.
part_eval_one.parser = argparse.ArgumentParser() |
Definition at line 18 of file part_eval_one.py.
part_eval_one.partition_command |
Definition at line 96 of file part_eval_one.py.
str part_eval_one.partition_conn_ini = args.name + ".conn.ini" |
Definition at line 26 of file part_eval_one.py.
str part_eval_one.partition_conn_json = args.name + ".conn.json" |
Definition at line 27 of file part_eval_one.py.
part_eval_one.parts_value = json_data["parts"] |
Definition at line 39 of file part_eval_one.py.
part_eval_one.required |
Definition at line 19 of file part_eval_one.py.
part_eval_one.rtol |
Definition at line 122 of file part_eval_one.py.
part_eval_one.shape_file = open(circle_model + ".output" + str(idx) + ".shape", 'r') |
Definition at line 113 of file part_eval_one.py.
part_eval_one.signature_outputs = signature_serving_default['outputs'] |
Definition at line 62 of file part_eval_one.py.
part_eval_one.signature_serving_default = full_signatures.get('serving_default', None) |
Definition at line 60 of file part_eval_one.py.
part_eval_one.str |
Definition at line 19 of file part_eval_one.py.
str part_eval_one.tflite_model = args.name + ".tflite" |
Definition at line 24 of file part_eval_one.py.
part_eval_one.type |
Definition at line 19 of file part_eval_one.py.