public static Offset <tflite.FakeQuantOptions> CreateFakeQuantOptions(FlatBufferBuilder builder, float min = 0.0f, float max = 0.0f, int num_bits = 0, bool narrow_range = false) { builder.StartTable(4); FakeQuantOptions.AddNumBits(builder, num_bits); FakeQuantOptions.AddMax(builder, max); FakeQuantOptions.AddMin(builder, min); FakeQuantOptions.AddNarrowRange(builder, narrow_range); return(FakeQuantOptions.EndFakeQuantOptions(builder)); }
public static FakeQuantOptions GetRootAsFakeQuantOptions(ByteBuffer _bb, FakeQuantOptions obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }