public static Offset <UIVariable> CreateUIVariable(FlatBufferBuilder builder, Offset <IntPair> idOffset = default(Offset <IntPair>), StringOffset nameOffset = default(StringOffset), VarType type = VarType.VARIABLE, DataType datatype = DataType.INHERIT, VectorOffset shapeOffset = default(VectorOffset), VectorOffset controlDepsOffset = default(VectorOffset), StringOffset outputOfOpOffset = default(StringOffset), VectorOffset inputsForOpOffset = default(VectorOffset), VectorOffset controlDepsForOpOffset = default(VectorOffset), VectorOffset controlDepsForVarOffset = default(VectorOffset), StringOffset gradientVariableOffset = default(StringOffset), StringOffset uiLabelExtraOffset = default(StringOffset), Offset <FlatArray> constantValueOffset = default(Offset <FlatArray>)) { builder.StartObject(13); UIVariable.AddConstantValue(builder, constantValueOffset); UIVariable.AddUiLabelExtra(builder, uiLabelExtraOffset); UIVariable.AddGradientVariable(builder, gradientVariableOffset); UIVariable.AddControlDepsForVar(builder, controlDepsForVarOffset); UIVariable.AddControlDepsForOp(builder, controlDepsForOpOffset); UIVariable.AddInputsForOp(builder, inputsForOpOffset); UIVariable.AddOutputOfOp(builder, outputOfOpOffset); UIVariable.AddControlDeps(builder, controlDepsOffset); UIVariable.AddShape(builder, shapeOffset); UIVariable.AddName(builder, nameOffset); UIVariable.AddId(builder, idOffset); UIVariable.AddDatatype(builder, datatype); UIVariable.AddType(builder, type); return(UIVariable.EndUIVariable(builder)); }
public static UIVariable GetRootAsUIVariable(ByteBuffer _bb, UIVariable obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }