ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Namespaces
|
Functions
|
Variables
luci_eval_verifier_ref.py File Reference
Go to the source code of this file.
Namespaces
namespace
luci_eval_verifier_ref
Functions
luci_eval_verifier_ref.dtype_from_file
(file_path)
Variables
luci_eval_verifier_ref.parser
= argparse.ArgumentParser()
luci_eval_verifier_ref.type
luci_eval_verifier_ref.str
luci_eval_verifier_ref.required
luci_eval_verifier_ref.args
= parser.parse_args()
luci_eval_verifier_ref.driver
= args.driver
str
luci_eval_verifier_ref.circle_model_ref
= args.model_ref + ".circle"
str
luci_eval_verifier_ref.circle_model
= args.work_path + ".circle"
int
luci_eval_verifier_ref.rtolf32
= 1e-5
int
luci_eval_verifier_ref.atolf32
= 1e-5
int
luci_eval_verifier_ref.rtolint
= 0
int
luci_eval_verifier_ref.atolint
= 0
int
luci_eval_verifier_ref.check_input
= 0
str
luci_eval_verifier_ref.input_file_path
=
circle_model_ref
+ ".input" +
str
(
check_input
)
int
luci_eval_verifier_ref.num_inputs
=
check_input
int
luci_eval_verifier_ref.check_output
= 0
str
luci_eval_verifier_ref.output_file_path
=
circle_model_ref
+ ".output" +
str
(
check_output
)
int
luci_eval_verifier_ref.num_outputs
=
check_output
luci_eval_verifier_ref.check
luci_eval_verifier_ref.output_dtype
=
dtype_from_file
(
circle_model_ref
+ ".output" +
str
(idx) + ".dtype")
luci_eval_verifier_ref.shape_file
= open(
circle_model_ref
+ ".output" +
str
(idx) + ".shape", 'r')
list
luci_eval_verifier_ref.output_shape
= [int(i) for i in shape_file.read().split(',')]
luci_eval_verifier_ref.output_data_ref
= np.fromfile(
circle_model_ref
+ ".output" +
str
(idx),
output_dtype
)
luci_eval_verifier_ref.luci_output_data_ref
= np.reshape(
output_data_ref
,
output_shape
)
luci_eval_verifier_ref.output_data
= np.fromfile(
circle_model
+ ".output" +
str
(idx),
output_dtype
)
luci_eval_verifier_ref.luci_output_data
= np.reshape(
output_data
,
output_shape
)
luci_eval_verifier_ref.rtol
luci_eval_verifier_ref.atol
compiler
luci-value-test
luci_eval_verifier_ref.py
Generated by
1.9.8