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

Variables

 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 required
 
 int
 
 args = parser.parse_args()
 
 model = args.model
 
 num_data = args.num_data
 
 output_path = args.output
 
 interpreter = tf.lite.Interpreter(model)
 
 input_details = interpreter.get_input_details()
 
 h5_file = h5.File(output_path, 'w')
 
 group = h5_file.create_group("value")
 
 sample = group.create_group(str(i))
 
 input_detail = input_details[j]
 
 input_data
 
 data
 

Variable Documentation

◆ args

gen_h5_random_inputs.args = parser.parse_args()

Definition at line 18 of file gen_h5_random_inputs.py.

◆ data

gen_h5_random_inputs.data

Definition at line 51 of file gen_h5_random_inputs.py.

◆ group

gen_h5_random_inputs.group = h5_file.create_group("value")

Definition at line 32 of file gen_h5_random_inputs.py.

◆ h5_file

gen_h5_random_inputs.h5_file = h5.File(output_path, 'w')

Definition at line 31 of file gen_h5_random_inputs.py.

◆ input_data

gen_h5_random_inputs.input_data
Initial value:
1= np.array(np.random.random_integers(0, 1, input_detail["shape"]),
2 input_detail["dtype"])

Definition at line 45 of file gen_h5_random_inputs.py.

◆ input_detail

gen_h5_random_inputs.input_detail = input_details[j]

Definition at line 41 of file gen_h5_random_inputs.py.

◆ input_details

gen_h5_random_inputs.input_details = interpreter.get_input_details()

Definition at line 28 of file gen_h5_random_inputs.py.

◆ int

gen_h5_random_inputs.int

Definition at line 16 of file gen_h5_random_inputs.py.

◆ interpreter

gen_h5_random_inputs.interpreter = tf.lite.Interpreter(model)

Definition at line 27 of file gen_h5_random_inputs.py.

◆ model

gen_h5_random_inputs.model = args.model

Definition at line 20 of file gen_h5_random_inputs.py.

◆ num_data

gen_h5_random_inputs.num_data = args.num_data

Definition at line 22 of file gen_h5_random_inputs.py.

◆ output_path

gen_h5_random_inputs.output_path = args.output

Definition at line 24 of file gen_h5_random_inputs.py.

◆ parser

gen_h5_random_inputs.parser = argparse.ArgumentParser()

Definition at line 14 of file gen_h5_random_inputs.py.

◆ required

gen_h5_random_inputs.required

Definition at line 15 of file gen_h5_random_inputs.py.

◆ sample

gen_h5_random_inputs.sample = group.create_group(str(i))

Definition at line 37 of file gen_h5_random_inputs.py.

◆ str

gen_h5_random_inputs.str

Definition at line 15 of file gen_h5_random_inputs.py.

◆ type

gen_h5_random_inputs.type

Definition at line 15 of file gen_h5_random_inputs.py.