Esempio n. 1
0
 public static Offset <FlatNode> CreateFlatNode(FlatBufferBuilder builder,
                                                int id = 0,
                                                StringOffset nameOffset = default(StringOffset),
                                                OpType opType           = OpType.TRANSFORM_FLOAT,
                                                long opNum = 0,
                                                VectorOffset propertiesOffset   = default(VectorOffset),
                                                VectorOffset inputOffset        = default(VectorOffset),
                                                VectorOffset inputPairedOffset  = default(VectorOffset),
                                                VectorOffset outputOffset       = default(VectorOffset),
                                                VectorOffset extraParamsOffset  = default(VectorOffset),
                                                VectorOffset extraIntegerOffset = default(VectorOffset),
                                                VectorOffset extraBoolsOffset   = default(VectorOffset),
                                                VectorOffset dimensionsOffset   = default(VectorOffset),
                                                int device   = 0,
                                                int scope_id = 0,
                                                StringOffset scope_nameOffset     = default(StringOffset),
                                                VectorOffset outputNamesOffset    = default(VectorOffset),
                                                StringOffset opNameOffset         = default(StringOffset),
                                                VectorOffset outputTypesOffset    = default(VectorOffset),
                                                Offset <FlatArray> scalarOffset   = default(Offset <FlatArray>),
                                                VectorOffset controlDepsOffset    = default(VectorOffset),
                                                VectorOffset varControlDepsOffset = default(VectorOffset),
                                                VectorOffset controlDepForOffset  = default(VectorOffset),
                                                VectorOffset extraTypesOffset     = default(VectorOffset))
 {
     builder.StartObject(23);
     FlatNode.AddOpNum(builder, opNum);
     FlatNode.AddExtraTypes(builder, extraTypesOffset);
     FlatNode.AddControlDepFor(builder, controlDepForOffset);
     FlatNode.AddVarControlDeps(builder, varControlDepsOffset);
     FlatNode.AddControlDeps(builder, controlDepsOffset);
     FlatNode.AddScalar(builder, scalarOffset);
     FlatNode.AddOutputTypes(builder, outputTypesOffset);
     FlatNode.AddOpName(builder, opNameOffset);
     FlatNode.AddOutputNames(builder, outputNamesOffset);
     FlatNode.AddScopeName(builder, scope_nameOffset);
     FlatNode.AddScopeId(builder, scope_id);
     FlatNode.AddDevice(builder, device);
     FlatNode.AddDimensions(builder, dimensionsOffset);
     FlatNode.AddExtraBools(builder, extraBoolsOffset);
     FlatNode.AddExtraInteger(builder, extraIntegerOffset);
     FlatNode.AddExtraParams(builder, extraParamsOffset);
     FlatNode.AddOutput(builder, outputOffset);
     FlatNode.AddInputPaired(builder, inputPairedOffset);
     FlatNode.AddInput(builder, inputOffset);
     FlatNode.AddProperties(builder, propertiesOffset);
     FlatNode.AddName(builder, nameOffset);
     FlatNode.AddId(builder, id);
     FlatNode.AddOpType(builder, opType);
     return(FlatNode.EndFlatNode(builder));
 }
Esempio n. 2
0
 public static Offset <FlatNode> CreateFlatNode(FlatBufferBuilder builder,
                                                int id = 0,
                                                StringOffset nameOffset = default(StringOffset),
                                                OpType opType           = OpType.TRANSFORM,
                                                long opNum = 0,
                                                VectorOffset propertiesOffset  = default(VectorOffset),
                                                VectorOffset inputOffset       = default(VectorOffset),
                                                VectorOffset inputPairedOffset = default(VectorOffset),
                                                DataType dataType               = DataType.INHERIT,
                                                VectorOffset outputOffset       = default(VectorOffset),
                                                VectorOffset extraParamsOffset  = default(VectorOffset),
                                                VectorOffset extraIntegerOffset = default(VectorOffset),
                                                VectorOffset dimensionsOffset   = default(VectorOffset),
                                                int device   = 0,
                                                float scalar = 0.0f,
                                                int scope_id = 0,
                                                StringOffset scope_nameOffset  = default(StringOffset),
                                                VectorOffset outputNamesOffset = default(VectorOffset),
                                                StringOffset opNameOffset      = default(StringOffset))
 {
     builder.StartObject(18);
     FlatNode.AddOpNum(builder, opNum);
     FlatNode.AddOpName(builder, opNameOffset);
     FlatNode.AddOutputNames(builder, outputNamesOffset);
     FlatNode.AddScopeName(builder, scope_nameOffset);
     FlatNode.AddScopeId(builder, scope_id);
     FlatNode.AddScalar(builder, scalar);
     FlatNode.AddDevice(builder, device);
     FlatNode.AddDimensions(builder, dimensionsOffset);
     FlatNode.AddExtraInteger(builder, extraIntegerOffset);
     FlatNode.AddExtraParams(builder, extraParamsOffset);
     FlatNode.AddOutput(builder, outputOffset);
     FlatNode.AddInputPaired(builder, inputPairedOffset);
     FlatNode.AddInput(builder, inputOffset);
     FlatNode.AddProperties(builder, propertiesOffset);
     FlatNode.AddName(builder, nameOffset);
     FlatNode.AddId(builder, id);
     FlatNode.AddDataType(builder, dataType);
     FlatNode.AddOpType(builder, opType);
     return(FlatNode.EndFlatNode(builder));
 }