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

Go to the source code of this file.

Namespaces

namespace  luci_eval_verifier
 

Variables

 luci_eval_verifier.parser = argparse.ArgumentParser()
 
 luci_eval_verifier.type
 
 luci_eval_verifier.str
 
 luci_eval_verifier.required
 
 luci_eval_verifier.args = parser.parse_args()
 
 luci_eval_verifier.driver = args.driver
 
str luci_eval_verifier.tflite_model = args.model + ".tflite"
 
str luci_eval_verifier.circle_model = args.model + ".circle"
 
int luci_eval_verifier.rtolf32 = 1e-5
 
int luci_eval_verifier.atolf32 = 1e-5
 
int luci_eval_verifier.rtolint = 0
 
int luci_eval_verifier.atolint = 0
 
 luci_eval_verifier.interpreter = tf.lite.Interpreter(tflite_model)
 
 luci_eval_verifier.full_signatures = interpreter._get_full_signature_list()
 
 luci_eval_verifier.full_signatures_outputs_remap = None
 
 luci_eval_verifier.signature_serving_default = full_signatures.get('serving_default', None)
 
 luci_eval_verifier.signature_outputs = signature_serving_default['outputs']
 
 luci_eval_verifier.num_inputs = len(interpreter.get_input_details())
 
 luci_eval_verifier.input_details = interpreter.get_input_details()[i]
 
 luci_eval_verifier.input_data
 
str luci_eval_verifier.input_dtype = "float32"
 
 luci_eval_verifier.sep
 
 luci_eval_verifier.check
 
 luci_eval_verifier.inpt_output_details = interpreter.get_output_details()
 
 luci_eval_verifier.output_details = inpt_output_details[idx]
 
 luci_eval_verifier.output_data
 
 luci_eval_verifier.shape_file = open(circle_model + ".output" + str(idx) + ".shape", 'r')
 
list luci_eval_verifier.output_shape = [int(i) for i in shape_file.read().split(',')]
 
 luci_eval_verifier.luci_output_data = np.reshape(output_data, output_shape)
 
 luci_eval_verifier.output_tensor = output_details["index"]
 
 luci_eval_verifier.intp_output_data = interpreter.get_tensor(output_tensor)
 
 luci_eval_verifier.rtol
 
 luci_eval_verifier.atol
 
str luci_eval_verifier.output_dtype = "uint8"