package caisar

  1. Overview
  2. Docs
type t =
  1. | Float of (float, Bigarray.float64_elt) Tensor.t
  2. | Int64 of (int64, Bigarray.int64_elt) Tensor.t
val create_1_float : float -> t
val create_1_int64 : int64 -> t
val of_float_array : ?shape:Shape.t -> float array -> t

of_float_array a shape returns a Tensor with data contained in l and shape shape. If no shape is given, the resulting tensor shape is 1-dimensional, equals to the length of l.

val of_int64_array : ?shape:Shape.t -> int64 array -> t

of_int64_array a shape returns a Tensor with data contained in l and shape shape. If no shape is given, the resulting tensor shape is 1-dimensional, equals to the length of l.

val shape : t -> Shape.t
OCaml

Innovation. Community. Security.