package caisar

  1. Overview
  2. Docs

Types

The standard ONNX data types.

module Tensor : sig ... end
module Sequence : sig ... end

repeated T

module Map : sig ... end

map<K,V>

module Optional : sig ... end

wrapper for Tensor, Sequence, or Map

module SparseTensor : sig ... end
type t = {
  1. value : [ `not_set | `Tensor_type of Tensor.t | `Sequence_type of Sequence.t | `Map_type of Map.t | `Sparse_tensor_type of SparseTensor.t | `Optional_type of Optional.t ];
  2. denotation : string option;
    (*

    An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/master/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.

    *)
}
val make : ?value: [ `not_set | `Tensor_type of Tensor.t | `Sequence_type of Sequence.t | `Map_type of Map.t | `Sparse_tensor_type of SparseTensor.t | `Optional_type of Optional.t ] -> ?denotation: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.