public static Offset <tflite.FullyConnectedOptions> CreateFullyConnectedOptions(FlatBufferBuilder builder, tflite.ActivationFunctionType fused_activation_function = tflite.ActivationFunctionType.NONE, tflite.FullyConnectedOptionsWeightsFormat weights_format = tflite.FullyConnectedOptionsWeightsFormat.DEFAULT, bool keep_num_dims = false) { builder.StartTable(3); FullyConnectedOptions.AddKeepNumDims(builder, keep_num_dims); FullyConnectedOptions.AddWeightsFormat(builder, weights_format); FullyConnectedOptions.AddFusedActivationFunction(builder, fused_activation_function); return(FullyConnectedOptions.EndFullyConnectedOptions(builder)); }
public static FullyConnectedOptions GetRootAsFullyConnectedOptions(ByteBuffer _bb, FullyConnectedOptions obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }