ONE - On-device Neural Engine
|
Functions | |
load_graph (model_file) | |
get_bcq_version (input_path) | |
get_bcqinfo_output_arrays_v1 (input_path, output_arrays) | |
get_bcq_output_arrays (input_path, output_arrays) | |
generate_bcq_output_arrays.get_bcq_output_arrays | ( | input_path, | |
output_arrays | |||
) |
Returns BCQ output arrays that the model from input_path has
Definition at line 105 of file generate_bcq_output_arrays.py.
References get_bcq_version(), and get_bcqinfo_output_arrays_v1().
generate_bcq_output_arrays.get_bcq_version | ( | input_path | ) |
If BCQ metadata exists, BCQ version is in the second element. Return -1 when the metadata is not found.
Definition at line 38 of file generate_bcq_output_arrays.py.
References load_graph().
Referenced by get_bcq_output_arrays().
generate_bcq_output_arrays.get_bcqinfo_output_arrays_v1 | ( | input_path, | |
output_arrays | |||
) |
This function generates a file which includes output arrays of BCQ v1 information bundles. Each bundle is consisted with one of candidate operations (BCQ may be applied) and BCQ constant nodes related with the operation.
Definition at line 52 of file generate_bcq_output_arrays.py.
References load_graph().
Referenced by get_bcq_output_arrays().
generate_bcq_output_arrays.load_graph | ( | model_file | ) |
Definition at line 26 of file generate_bcq_output_arrays.py.
Referenced by get_bcq_version(), and get_bcqinfo_output_arrays_v1().