示例#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));
 }
示例#2
0
 public static LSTMOptions GetRootAsLSTMOptions(ByteBuffer _bb, LSTMOptions obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }