ONE - On-device Neural Engine
Loading...
Searching...
No Matches
eval_result_verifier Namespace Reference

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
 

Variable Documentation

◆ args

eval_result_verifier.args = parser.parse_args()

Definition at line 15 of file eval_result_verifier.py.

◆ atol

eval_result_verifier.atol

Definition at line 85 of file eval_result_verifier.py.

◆ check

eval_result_verifier.check

Definition at line 68 of file eval_result_verifier.py.

◆ circle_model

eval_result_verifier.circle_model = args.circle

Definition at line 19 of file eval_result_verifier.py.

◆ driver

eval_result_verifier.driver = args.driver

Definition at line 17 of file eval_result_verifier.py.

◆ full_signatures

eval_result_verifier.full_signatures = interpreter._get_full_signature_list()

Definition at line 26 of file eval_result_verifier.py.

◆ full_signatures_outputs_remap

list eval_result_verifier.full_signatures_outputs_remap = None

Definition at line 27 of file eval_result_verifier.py.

◆ inpt_output_details

eval_result_verifier.inpt_output_details = interpreter.get_output_details()

Definition at line 71 of file eval_result_verifier.py.

◆ input_data

eval_result_verifier.input_data
Initial value:
1= np.array(np.random.random_sample(input_details["shape"]),
2 input_details["dtype"])

Definition at line 42 of file eval_result_verifier.py.

◆ input_details

eval_result_verifier.input_details = interpreter.get_input_details()[i]

Definition at line 40 of file eval_result_verifier.py.

◆ interpreter

eval_result_verifier.interpreter = tf.lite.Interpreter(tflite_model)

Definition at line 22 of file eval_result_verifier.py.

◆ intp_output_data

eval_result_verifier.intp_output_data = interpreter.get_tensor(output_tensor)

Definition at line 82 of file eval_result_verifier.py.

◆ luci_output_data

eval_result_verifier.luci_output_data = np.reshape(output_data, output_shape)

Definition at line 78 of file eval_result_verifier.py.

◆ num_inputs

eval_result_verifier.num_inputs = len(interpreter.get_input_details())

Definition at line 38 of file eval_result_verifier.py.

◆ output_data

eval_result_verifier.output_data
Initial value:
1= np.fromfile(circle_model + ".output" + str(idx),
2 output_details["dtype"])

Definition at line 74 of file eval_result_verifier.py.

◆ output_details

eval_result_verifier.output_details = inpt_output_details[idx]

Definition at line 73 of file eval_result_verifier.py.

◆ output_shape

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.

◆ output_tensor

eval_result_verifier.output_tensor = output_details["index"]

Definition at line 79 of file eval_result_verifier.py.

◆ parser

eval_result_verifier.parser = argparse.ArgumentParser()

Definition at line 11 of file eval_result_verifier.py.

◆ required

eval_result_verifier.required

Definition at line 12 of file eval_result_verifier.py.

◆ rtol

eval_result_verifier.rtol

Definition at line 85 of file eval_result_verifier.py.

◆ shape_file

eval_result_verifier.shape_file = open(circle_model + ".output" + str(idx) + ".shape", 'r')

Definition at line 76 of file eval_result_verifier.py.

◆ signature_outputs

eval_result_verifier.signature_outputs = signature_serving_default['outputs']

Definition at line 31 of file eval_result_verifier.py.

◆ signature_serving_default

eval_result_verifier.signature_serving_default = full_signatures.get('serving_default', None)

Definition at line 29 of file eval_result_verifier.py.

◆ str

eval_result_verifier.str

Definition at line 12 of file eval_result_verifier.py.

◆ tflite_model

eval_result_verifier.tflite_model = args.tflite

Definition at line 18 of file eval_result_verifier.py.

◆ type

eval_result_verifier.type

Definition at line 12 of file eval_result_verifier.py.