package caisar

  1. Overview
  2. Docs
type t = {
  1. name : string option;
    (*

    The name of the function, similar usage of op_type in OperatorProto. Combined with FunctionProto.domain, this forms the unique identity of the FunctionProto.

    *)
  2. input : string list;
    (*

    The inputs and outputs of the function.

    *)
  3. output : string list;
  4. attribute : string list;
    (*

    The attributes of the function.

    *)
  5. node : NodeProto.t list;
    (*

    The nodes in the function.

    *)
  6. doc_string : string option;
    (*

    A human-readable documentation for this function. Markdown is allowed.

    *)
  7. opset_import : OperatorSetIdProto.t list;
  8. domain : string option;
    (*

    The domain which this function belongs to. Combined with FunctionProto.name, this forms the unique identity of the FunctionProto.

    *)
}
val make : ?name:string -> ?input:string list -> ?output:string list -> ?attribute:string list -> ?node:NodeProto.t list -> ?doc_string:string -> ?opset_import:OperatorSetIdProto.t list -> ?domain:string -> unit -> t

Helper function to generate a message using default values

Serialize the message to binary format

Deserialize from binary format

Serialize to Json (compatible with Yojson.Basic.t)

Deserialize from Json (compatible with Yojson.Basic.t)

val name : unit -> string

Fully qualified protobuf name of this message

OCaml

Innovation. Community. Security.