package torch

  1. Overview
  2. Docs
type _ t =
  1. | Uint8 : [ `u8 ] t
  2. | Int8 : [ `i8 ] t
  3. | Int16 : [ `i16 ] t
  4. | Int : [ `i32 ] t
  5. | Int64 : [ `i64 ] t
  6. | Half : [ `f16 ] t
  7. | Float : [ `f32 ] t
  8. | Double : [ `f64 ] t
  9. | ComplexHalf : [ `c16 ] t
  10. | ComplexFloat : [ `c32 ] t
  11. | ComplexDouble : [ `c64 ] t
  12. | Bool : [ `bool ] t
val u8 : [ `u8 ] t
val i8 : [ `i8 ] t
val i16 : [ `i16 ] t
val i32 : [ `i32 ] t
val i64 : [ `i64 ] t
val f16 : [ `f16 ] t
val f32 : [ `f32 ] t
val f64 : [ `f64 ] t
val c16 : [ `c16 ] t
val c32 : [ `c32 ] t
val c64 : [ `c64 ] t
val bool : [ `bool ] t
type packed =
  1. | T : _ t -> packed
val to_int : _ t -> int
val packed_to_int : packed -> int
val of_int_exn : int -> packed
val (<>) : packed -> packed -> bool
OCaml

Innovation. Community. Security.