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

Variables

 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 required
 
 args = parser.parse_args()
 
 driver = args.driver
 
str tflite_model = args.model + ".tflite"
 
str circle_model = args.model + ".circle"
 
int rtolf32 = 1e-5
 
int atolf32 = 1e-5
 
int rtolint = 0
 
int atolint = 0
 
 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
 
str input_dtype = "float32"
 
 sep
 
 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
 
str output_dtype = "uint8"
 

Variable Documentation

◆ args

luci_eval_verifier.args = parser.parse_args()

Definition at line 19 of file luci_eval_verifier.py.

◆ atol

luci_eval_verifier.atol

Definition at line 121 of file luci_eval_verifier.py.

◆ atolf32

luci_eval_verifier.atolf32 = 1e-5

Definition at line 26 of file luci_eval_verifier.py.

◆ atolint

luci_eval_verifier.atolint = 0

Definition at line 29 of file luci_eval_verifier.py.

◆ check

luci_eval_verifier.check

Definition at line 103 of file luci_eval_verifier.py.

◆ circle_model

str luci_eval_verifier.circle_model = args.model + ".circle"

Definition at line 23 of file luci_eval_verifier.py.

◆ driver

luci_eval_verifier.driver = args.driver

Definition at line 21 of file luci_eval_verifier.py.

◆ full_signatures

luci_eval_verifier.full_signatures = interpreter._get_full_signature_list()

Definition at line 46 of file luci_eval_verifier.py.

◆ full_signatures_outputs_remap

list luci_eval_verifier.full_signatures_outputs_remap = None

Definition at line 47 of file luci_eval_verifier.py.

◆ inpt_output_details

luci_eval_verifier.inpt_output_details = interpreter.get_output_details()

Definition at line 106 of file luci_eval_verifier.py.

◆ input_data

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

Definition at line 62 of file luci_eval_verifier.py.

◆ input_details

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

Definition at line 60 of file luci_eval_verifier.py.

◆ input_dtype

str luci_eval_verifier.input_dtype = "float32"

Definition at line 64 of file luci_eval_verifier.py.

◆ interpreter

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

Definition at line 42 of file luci_eval_verifier.py.

◆ intp_output_data

luci_eval_verifier.intp_output_data = interpreter.get_tensor(output_tensor)

Definition at line 117 of file luci_eval_verifier.py.

◆ luci_output_data

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

Definition at line 113 of file luci_eval_verifier.py.

◆ num_inputs

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

Definition at line 58 of file luci_eval_verifier.py.

◆ output_data

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

Definition at line 109 of file luci_eval_verifier.py.

◆ output_details

luci_eval_verifier.output_details = inpt_output_details[idx]

Definition at line 108 of file luci_eval_verifier.py.

◆ output_dtype

str luci_eval_verifier.output_dtype = "uint8"

Definition at line 126 of file luci_eval_verifier.py.

◆ output_shape

list luci_eval_verifier.output_shape = [int(i) for i in shape_file.read().split(',')]

Definition at line 112 of file luci_eval_verifier.py.

◆ output_tensor

luci_eval_verifier.output_tensor = output_details["index"]

Definition at line 114 of file luci_eval_verifier.py.

◆ parser

luci_eval_verifier.parser = argparse.ArgumentParser()

Definition at line 14 of file luci_eval_verifier.py.

◆ required

luci_eval_verifier.required

Definition at line 15 of file luci_eval_verifier.py.

◆ rtol

luci_eval_verifier.rtol

Definition at line 120 of file luci_eval_verifier.py.

◆ rtolf32

luci_eval_verifier.rtolf32 = 1e-5

Definition at line 25 of file luci_eval_verifier.py.

◆ rtolint

luci_eval_verifier.rtolint = 0

Definition at line 28 of file luci_eval_verifier.py.

◆ sep

luci_eval_verifier.sep

Definition at line 91 of file luci_eval_verifier.py.

◆ shape_file

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

Definition at line 111 of file luci_eval_verifier.py.

◆ signature_outputs

luci_eval_verifier.signature_outputs = signature_serving_default['outputs']

Definition at line 51 of file luci_eval_verifier.py.

◆ signature_serving_default

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

Definition at line 49 of file luci_eval_verifier.py.

◆ str

luci_eval_verifier.str

Definition at line 15 of file luci_eval_verifier.py.

◆ tflite_model

str luci_eval_verifier.tflite_model = args.model + ".tflite"

Definition at line 22 of file luci_eval_verifier.py.

◆ type

luci_eval_verifier.type

Definition at line 15 of file luci_eval_verifier.py.