PandA-2024.02
Variables
11_onnx_build Namespace Reference

Variables

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

Variable Documentation

◆ conv1

11_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 11_onnx_build.py.

◆ graph_def

11_onnx_build.graph_def
Initial value:
1 = helper.make_graph(
2  nodes=[conv1], # graph nodes
3  name= 'conv2d_b_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 11_onnx_build.py.

◆ model_def

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

Definition at line 38 of file 11_onnx_build.py.

◆ W

11_onnx_build.W = np.array([[[[-1,-1,-1],[-1,8,-1],[-1,-1,-1]]],[[[0,-1,0],[-1,5,-1],[0,-1,0]]]]).astype(np.float32)

Definition at line 12 of file 11_onnx_build.py.

◆ W_info

11_onnx_build.W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [2, 1, 3, 3])

Definition at line 11 of file 11_onnx_build.py.

◆ X

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

Definition at line 9 of file 11_onnx_build.py.

◆ Y

11_onnx_build.Y = helper.make_tensor_value_info('Y', TensorProto.FLOAT, [1, 2, 64, 64])

Definition at line 17 of file 11_onnx_build.py.


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