Esempio n. 1
0
 public static Offset <tflite.LSTMOptions> CreateLSTMOptions(FlatBufferBuilder builder,
                                                             tflite.ActivationFunctionType fused_activation_function = tflite.ActivationFunctionType.NONE,
                                                             float cell_clip = 0.0f,
                                                             float proj_clip = 0.0f,
                                                             tflite.LSTMKernelType kernel_type = tflite.LSTMKernelType.FULL)
 {
     builder.StartTable(4);
     LSTMOptions.AddProjClip(builder, proj_clip);
     LSTMOptions.AddCellClip(builder, cell_clip);
     LSTMOptions.AddKernelType(builder, kernel_type);
     LSTMOptions.AddFusedActivationFunction(builder, fused_activation_function);
     return(LSTMOptions.EndLSTMOptions(builder));
 }
Esempio n. 2
0
 public static void AddKernelType(FlatBufferBuilder builder, tflite.LSTMKernelType kernelType)
 {
     builder.AddSbyte(3, (sbyte)kernelType, 0);
 }