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

Go to the source code of this file.

Namespaces

namespace  infer_testcases
 

Functions

 infer_testcases.eprint (*args, **kwargs)
 
 infer_testcases.get_command_caf (infilename, outfilename, proto, caffemodel)
 
 infer_testcases.get_command_tfl (infilename, outfilename, model_file)
 

Variables

str infer_testcases.helpstr
 
int infer_testcases.nproc = 1
 
int infer_testcases.proc_num = 1
 
int infer_testcases.min_argc = 8
 
dict infer_testcases.args = {}
 
 infer_testcases.argc = len(sys.argv)
 
 infer_testcases.arg = sys.argv[i]
 
dict infer_testcases.fw = args['-f']
 
dict infer_testcases.build_path = args['-b']
 
dict infer_testcases.testcases_dir = args['-t']
 
dict infer_testcases.remove_existing = args['-r']
 
 infer_testcases.model = sys.argv[-1]
 
 infer_testcases.model_proto = sys.argv[-2]
 
 infer_testcases.model_caffe = sys.argv[-1]
 
str infer_testcases.hdf_suffix = '.hdf5'
 
str infer_testcases.bin_suffix = '.dat'
 
int infer_testcases.testcase_num = 0
 
 infer_testcases.testcases = glob.glob(testcases_dir + '/testcase*')
 
 infer_testcases.infile = glob.glob(testcase + '/input/*' + hdf_suffix)
 
str infer_testcases.outfile = testcase + '/output/output' + hdf_suffix
 
str infer_testcases.outfile_bin = testcase + '/output/output' + bin_suffix
 
 infer_testcases.command = get_command_tfl(infile, outfile, model)