PandA-2024.02
Variables
04_onnx_build Namespace Reference

Variables

 X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1])
 
 W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [1,8])
 
 W = np.ones((1,8)).astype(np.float32)
 
 B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [8])
 
 B = np.ones((8)).astype(np.float32)
 
 Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [8])
 
 matmul1
 
 bias1
 
 graph_def
 
 model_def = helper.make_model(graph_def, producer_name='benchmarks')
 

Variable Documentation

◆ B

04_onnx_build.B = np.ones((8)).astype(np.float32)

Definition at line 16 of file 04_onnx_build.py.

◆ B_info

04_onnx_build.B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [8])

Definition at line 15 of file 04_onnx_build.py.

◆ bias1

04_onnx_build.bias1
Initial value:
1 = helper.make_node(
2  'Add',
3  ['Y', 'B'],
4  ['Z'],
5  )

Definition at line 28 of file 04_onnx_build.py.

◆ graph_def

04_onnx_build.graph_def
Initial value:
1 = helper.make_graph(
2  nodes=[matmul1, bias1], # graph nodes
3  name= 'dense_a_model', # graph name
4  inputs = [X, W_info, B_info], # graph inputs
5  outputs = [Z], # graph outputs
6  initializer = [W, B],
7  )

Definition at line 35 of file 04_onnx_build.py.

◆ matmul1

04_onnx_build.matmul1
Initial value:
1 = helper.make_node(
2  'MatMul', # name
3  ['X', 'W'], # inputs
4  ['Y'], # outputs
5  )

Definition at line 22 of file 04_onnx_build.py.

◆ model_def

04_onnx_build.model_def = helper.make_model(graph_def, producer_name='benchmarks')

Definition at line 43 of file 04_onnx_build.py.

◆ W

04_onnx_build.W = np.ones((1,8)).astype(np.float32)

Definition at line 12 of file 04_onnx_build.py.

◆ W_info

04_onnx_build.W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [1,8])

Definition at line 11 of file 04_onnx_build.py.

◆ X

04_onnx_build.X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1])

Definition at line 9 of file 04_onnx_build.py.

◆ Z

04_onnx_build.Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [8])

Definition at line 20 of file 04_onnx_build.py.


Generated on Mon Feb 12 2024 13:04:11 for PandA-2024.02 by doxygen 1.8.13