ONE - On-device Neural Engine
|
Variables | |
parser = argparse.ArgumentParser() | |
type | |
str | |
required | |
args = parser.parse_args() | |
driver = args.driver | |
tflite_model = args.tflite | |
circle_model = args.circle | |
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_data | |
check | |
inpt_output_details = interpreter.get_output_details() | |
output_details = inpt_output_details[idx] | |
output_data | |
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 | |
eval_result_verifier.args = parser.parse_args() |
Definition at line 15 of file eval_result_verifier.py.
eval_result_verifier.atol |
Definition at line 85 of file eval_result_verifier.py.
eval_result_verifier.check |
Definition at line 68 of file eval_result_verifier.py.
eval_result_verifier.circle_model = args.circle |
Definition at line 19 of file eval_result_verifier.py.
eval_result_verifier.driver = args.driver |
Definition at line 17 of file eval_result_verifier.py.
eval_result_verifier.full_signatures = interpreter._get_full_signature_list() |
Definition at line 26 of file eval_result_verifier.py.
list eval_result_verifier.full_signatures_outputs_remap = None |
Definition at line 27 of file eval_result_verifier.py.
eval_result_verifier.inpt_output_details = interpreter.get_output_details() |
Definition at line 71 of file eval_result_verifier.py.
eval_result_verifier.input_data |
Definition at line 42 of file eval_result_verifier.py.
eval_result_verifier.input_details = interpreter.get_input_details()[i] |
Definition at line 40 of file eval_result_verifier.py.
eval_result_verifier.interpreter = tf.lite.Interpreter(tflite_model) |
Definition at line 22 of file eval_result_verifier.py.
eval_result_verifier.intp_output_data = interpreter.get_tensor(output_tensor) |
Definition at line 82 of file eval_result_verifier.py.
eval_result_verifier.luci_output_data = np.reshape(output_data, output_shape) |
Definition at line 78 of file eval_result_verifier.py.
eval_result_verifier.num_inputs = len(interpreter.get_input_details()) |
Definition at line 38 of file eval_result_verifier.py.
eval_result_verifier.output_data |
Definition at line 74 of file eval_result_verifier.py.
eval_result_verifier.output_details = inpt_output_details[idx] |
Definition at line 73 of file eval_result_verifier.py.
list eval_result_verifier.output_shape = [int(i) for i in shape_file.read().split(',')] |
Definition at line 77 of file eval_result_verifier.py.
eval_result_verifier.output_tensor = output_details["index"] |
Definition at line 79 of file eval_result_verifier.py.
eval_result_verifier.parser = argparse.ArgumentParser() |
Definition at line 11 of file eval_result_verifier.py.
eval_result_verifier.required |
Definition at line 12 of file eval_result_verifier.py.
eval_result_verifier.rtol |
Definition at line 85 of file eval_result_verifier.py.
eval_result_verifier.shape_file = open(circle_model + ".output" + str(idx) + ".shape", 'r') |
Definition at line 76 of file eval_result_verifier.py.
eval_result_verifier.signature_outputs = signature_serving_default['outputs'] |
Definition at line 31 of file eval_result_verifier.py.
eval_result_verifier.signature_serving_default = full_signatures.get('serving_default', None) |
Definition at line 29 of file eval_result_verifier.py.
eval_result_verifier.str |
Definition at line 12 of file eval_result_verifier.py.
eval_result_verifier.tflite_model = args.tflite |
Definition at line 18 of file eval_result_verifier.py.
eval_result_verifier.type |
Definition at line 12 of file eval_result_verifier.py.