PandA-2024.02
Variables
e2_onnx_build Namespace Reference

Variables

 X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1, 1, 32, 32])
 
 W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [5, 1, 3, 3])
 
 W = np.array([[[[-1,-1,-1],[-1,8.1,-1],[-1,-1,-1]]],[[[0,-1,0],[-1,5,-1],[0,-1,0]]],[[[-2,-1,0],[-1,1,1],[0,1,2]]],[[[1,2,1],[0,0,0],[-1,-2,-1]]],[[[1,0,-1],[2,0,-2],[1,0,-1]]]]).astype(np.float32)
 
 Y = helper.make_tensor_value_info('Y', TensorProto.FLOAT, [1, 5, 32, 32])
 
 conv1
 
 graph_def
 
 model_def = helper.make_model(graph_def, producer_name='benchmarks')
 

Variable Documentation

◆ conv1

e2_onnx_build.conv1
Initial value:
1 = helper.make_node(
2  'Conv', # name
3  ['X', 'W'], # inputs
4  ['Y'], # outputs
5 
6  kernel_shape=[3, 3],
7  strides=[1, 1],
8  pads=[1, 1, 1, 1],
9  )

Definition at line 19 of file e2_onnx_build.py.

◆ graph_def

e2_onnx_build.graph_def
Initial value:
1 = helper.make_graph(
2  nodes=[conv1], # graph nodes
3  name= 'conv_model', # graph name
4  inputs = [X, W_info], # graph inputs
5  outputs = [Y], # graph outputs
6  initializer = [W],
7  )

Definition at line 30 of file e2_onnx_build.py.

◆ model_def

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

Definition at line 38 of file e2_onnx_build.py.

◆ W

e2_onnx_build.W = np.array([[[[-1,-1,-1],[-1,8.1,-1],[-1,-1,-1]]],[[[0,-1,0],[-1,5,-1],[0,-1,0]]],[[[-2,-1,0],[-1,1,1],[0,1,2]]],[[[1,2,1],[0,0,0],[-1,-2,-1]]],[[[1,0,-1],[2,0,-2],[1,0,-1]]]]).astype(np.float32)

Definition at line 12 of file e2_onnx_build.py.

◆ W_info

e2_onnx_build.W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [5, 1, 3, 3])

Definition at line 11 of file e2_onnx_build.py.

◆ X

e2_onnx_build.X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1, 1, 32, 32])

Definition at line 9 of file e2_onnx_build.py.

◆ Y

e2_onnx_build.Y = helper.make_tensor_value_info('Y', TensorProto.FLOAT, [1, 5, 32, 32])

Definition at line 17 of file e2_onnx_build.py.


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