Пример #1
0
 public static Offset <tflite.SparsityParameters> CreateSparsityParameters(FlatBufferBuilder builder,
                                                                           VectorOffset traversal_orderOffset = default(VectorOffset),
                                                                           VectorOffset block_mapOffset       = default(VectorOffset),
                                                                           VectorOffset dim_metadataOffset    = default(VectorOffset))
 {
     builder.StartTable(3);
     SparsityParameters.AddDimMetadata(builder, dim_metadataOffset);
     SparsityParameters.AddBlockMap(builder, block_mapOffset);
     SparsityParameters.AddTraversalOrder(builder, traversal_orderOffset);
     return(SparsityParameters.EndSparsityParameters(builder));
 }
Пример #2
0
 public static SparsityParameters GetRootAsSparsityParameters(ByteBuffer _bb, SparsityParameters obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }