public static Offset <tflite.SubGraph> CreateSubGraph(FlatBufferBuilder builder, VectorOffset tensorsOffset = default(VectorOffset), VectorOffset inputsOffset = default(VectorOffset), VectorOffset outputsOffset = default(VectorOffset), VectorOffset operatorsOffset = default(VectorOffset), StringOffset nameOffset = default(StringOffset)) { builder.StartTable(5); SubGraph.AddName(builder, nameOffset); SubGraph.AddOperators(builder, operatorsOffset); SubGraph.AddOutputs(builder, outputsOffset); SubGraph.AddInputs(builder, inputsOffset); SubGraph.AddTensors(builder, tensorsOffset); return(SubGraph.EndSubGraph(builder)); }
public static SubGraph GetRootAsSubGraph(ByteBuffer _bb, SubGraph obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }