PandA-2024.02
|
Variables | |
X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1]) | |
W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [1,64]) | |
W = np.ones((1,64)).astype(np.float32) | |
B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [64]) | |
B = np.ones((64)).astype(np.float32) | |
Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [64]) | |
matmul1 | |
bias1 | |
graph_def | |
model_def = helper.make_model(graph_def, producer_name='benchmarks') | |
05_onnx_build.B = np.ones((64)).astype(np.float32) |
Definition at line 16 of file 05_onnx_build.py.
05_onnx_build.B_info = helper.make_tensor_value_info('B', TensorProto.FLOAT, [64]) |
Definition at line 15 of file 05_onnx_build.py.
05_onnx_build.bias1 |
Definition at line 28 of file 05_onnx_build.py.
05_onnx_build.graph_def |
Definition at line 35 of file 05_onnx_build.py.
05_onnx_build.matmul1 |
Definition at line 22 of file 05_onnx_build.py.
05_onnx_build.model_def = helper.make_model(graph_def, producer_name='benchmarks') |
Definition at line 43 of file 05_onnx_build.py.
05_onnx_build.W = np.ones((1,64)).astype(np.float32) |
Definition at line 12 of file 05_onnx_build.py.
05_onnx_build.W_info = helper.make_tensor_value_info('W', TensorProto.FLOAT, [1,64]) |
Definition at line 11 of file 05_onnx_build.py.
05_onnx_build.X = helper.make_tensor_value_info('X', TensorProto.FLOAT, [1]) |
Definition at line 9 of file 05_onnx_build.py.
05_onnx_build.Z = helper.make_tensor_value_info('Z', TensorProto.FLOAT, [64]) |
Definition at line 20 of file 05_onnx_build.py.