Example #1
0
 public static Offset <tflite.CastOptions> CreateCastOptions(FlatBufferBuilder builder,
                                                             tflite.TensorType in_data_type  = tflite.TensorType.FLOAT32,
                                                             tflite.TensorType out_data_type = tflite.TensorType.FLOAT32)
 {
     builder.StartTable(2);
     CastOptions.AddOutDataType(builder, out_data_type);
     CastOptions.AddInDataType(builder, in_data_type);
     return(CastOptions.EndCastOptions(builder));
 }
Example #2
0
 public static CastOptions GetRootAsCastOptions(ByteBuffer _bb, CastOptions obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }