PandA-2024.02
Variables
e1_onnx_build Namespace Reference

Variables

 X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1,784])
 
 W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [784,10])
 
 W = np.random.randn(784,10).astype(np.float32)
 
 B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [1,10])
 
 B = np.ones([1,10]).astype(np.float32)
 
 Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [1,10])
 
 matmul
 
 bias
 
 softmax
 
 graph_def
 
 model_def = helper.make_model(graph_def, producer_name='benchmarks')
 

Variable Documentation

◆ B

e1_onnx_build.B = np.ones([1,10]).astype(np.float32)

Definition at line 18 of file e1_onnx_build.py.

◆ B_info

e1_onnx_build.B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [1,10])

Definition at line 17 of file e1_onnx_build.py.

◆ bias

e1_onnx_build.bias
Initial value:
1 = helper.make_node(
2  'Add',
3  ['Y', 'B'],
4  ['V'],
5  )

Definition at line 30 of file e1_onnx_build.py.

◆ graph_def

e1_onnx_build.graph_def
Initial value:
1 = helper.make_graph(
2  nodes=[matmul, bias, softmax], # graph nodes
3  name= 'mlp_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 44 of file e1_onnx_build.py.

◆ matmul

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

Definition at line 24 of file e1_onnx_build.py.

◆ model_def

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

Definition at line 52 of file e1_onnx_build.py.

◆ softmax

e1_onnx_build.softmax
Initial value:
1 = helper.make_node(
2  'Softmax',
3  ['V'],
4  ['Z']
5  )

Definition at line 36 of file e1_onnx_build.py.

◆ W

e1_onnx_build.W = np.random.randn(784,10).astype(np.float32)

Definition at line 14 of file e1_onnx_build.py.

◆ W_info

e1_onnx_build.W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [784,10])

Definition at line 13 of file e1_onnx_build.py.

◆ X

e1_onnx_build.X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1,784])

Definition at line 11 of file e1_onnx_build.py.

◆ Z

e1_onnx_build.Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [1,10])

Definition at line 22 of file e1_onnx_build.py.


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