コード例 #1
0
 public static Offset <tflite.BidirectionalSequenceRNNOptions> CreateBidirectionalSequenceRNNOptions(FlatBufferBuilder builder,
                                                                                                     bool time_major = false,
                                                                                                     tflite.ActivationFunctionType fused_activation_function = tflite.ActivationFunctionType.NONE,
                                                                                                     bool merge_outputs = false)
 {
     builder.StartTable(3);
     BidirectionalSequenceRNNOptions.AddMergeOutputs(builder, merge_outputs);
     BidirectionalSequenceRNNOptions.AddFusedActivationFunction(builder, fused_activation_function);
     BidirectionalSequenceRNNOptions.AddTimeMajor(builder, time_major);
     return(BidirectionalSequenceRNNOptions.EndBidirectionalSequenceRNNOptions(builder));
 }
コード例 #2
0
 public static BidirectionalSequenceRNNOptions GetRootAsBidirectionalSequenceRNNOptions(ByteBuffer _bb, BidirectionalSequenceRNNOptions obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }