Bolt
flow.proto File Reference

Flow graph defination. More...

Go to the source code of this file.

Variables

 syntax = "proto2"
 
package flow
 
message GraphParameter
 
repeated string input = 2
 
repeated string output = 3
 
repeated NodeParameter node = 4
 
message NodeParameter
 
optional string type = 2
 
optional string input_type = 3
 
optional string input_format = 4
 
repeated int32 input_dim = 5
 
optional uint32 tmp = 8 [default = 0]
 
optional string precision = 9 [default = "FLOAT32"]
 
repeated string infer_output_size_parameter = 10
 
repeated string preprocess_parameter = 11
 
repeated string inference_parameter = 12
 
repeated string postprocess_parameter = 13
 

Detailed Description

Flow graph defination.

Definition in file flow.proto.

Variable Documentation

◆ GraphParameter

message GraphParameter
Initial value:
{
optional string name = 1

flow graph defination

Definition at line 27 of file flow.proto.

◆ infer_output_size_parameter

repeated string infer_output_size_parameter = 10

self-defined infer node output size function parameter parameter use array to manage, [function name, other parameters] other paramaters are optional

Definition at line 77 of file flow.proto.

◆ inference_parameter

repeated string inference_parameter = 12

self-defined inference parameter parameter use array to manage, [inference model path, model output] model output paramaters are optional when there is no postprocess function.

Definition at line 89 of file flow.proto.

◆ input

repeated string input = 2

graph input names

node input names

Definition at line 31 of file flow.proto.

◆ input_dim

repeated int32 input_dim = 5

node input dimension, only input node use this information

Definition at line 60 of file flow.proto.

◆ input_format

optional string input_format = 4

node input data format, only input node use this information candidates are NCHW, NCHWC8, MTK, NORMAL

Definition at line 58 of file flow.proto.

◆ input_type

optional string input_type = 3

node input data type, only input node use this information candidates are FLOAT32, FLOAT16, UINT32, INT8

Definition at line 53 of file flow.proto.

◆ node

repeated NodeParameter node = 4

node parameter

Definition at line 35 of file flow.proto.

◆ NodeParameter

message NodeParameter
Initial value:
{
optional string name = 1

flow node defination

Definition at line 39 of file flow.proto.

◆ output

repeated string output = 3

graph output names

node output names

Definition at line 33 of file flow.proto.

◆ postprocess_parameter

repeated string postprocess_parameter = 13

self-defined postprocess function parameter parameter use array to manage, [postprocess function name, other parameters] other paramaters are optional

Definition at line 95 of file flow.proto.

◆ precision

optional string precision = 9 [default = "FLOAT32"]

node inference precision, support prefered process precision

Definition at line 70 of file flow.proto.

◆ preprocess_parameter

repeated string preprocess_parameter = 11

self-defined preprocess function parameter parameter use array to manage, [preprocess function name, other parameters] other paramaters are optional

Definition at line 83 of file flow.proto.

◆ tmp

optional uint32 tmp = 8 [default = 0]

preprocess and postprocess tmp bufer size, element number, not bytes

Definition at line 68 of file flow.proto.

◆ type

optional string type = 2

node type type='Input' to mark node as an input node type='Inference' to mark node as an inference node

Definition at line 47 of file flow.proto.