Пример #1
0
 public static Offset <tflite.SkipGramOptions> CreateSkipGramOptions(FlatBufferBuilder builder,
                                                                     int ngram_size          = 0,
                                                                     int max_skip_size       = 0,
                                                                     bool include_all_ngrams = false)
 {
     builder.StartTable(3);
     SkipGramOptions.AddMaxSkipSize(builder, max_skip_size);
     SkipGramOptions.AddNgramSize(builder, ngram_size);
     SkipGramOptions.AddIncludeAllNgrams(builder, include_all_ngrams);
     return(SkipGramOptions.EndSkipGramOptions(builder));
 }
Пример #2
0
 public static SkipGramOptions GetRootAsSkipGramOptions(ByteBuffer _bb, SkipGramOptions obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }