package tensorflow

  1. Overview
  2. Docs
module Op_name : Core_kernel.Std.Identifiable
module Name : sig ... end
module Id : Core_kernel.Std.Identifiable
module Type : sig ... end
module Tensor : sig ... end
module Dim : sig ... end
module Attr_list : sig ... end
type attr =
  1. | String of string
  2. | Int of int
  3. | Float of float
  4. | Bool of bool
  5. | Type of Type.p
  6. | List of Attr_list.t
  7. | Tensor_float of float Tensor.t
  8. | Tensor_int of int Tensor.t
  9. | Tensor_string of string Tensor.t
  10. | Shape of Dim.t list
type !'a t = {
  1. name : Name.t;
  2. op_name : Op_name.t;
  3. output_type : 'a Type.t;
  4. inputs : p list;
  5. attributes : (string * attr) list;
  6. output_idx : int option;
}
and p =
  1. | P : 'a t -> p
val packed_name : p -> Name.t
val packed_op_name : p -> Op_name.t
val packed_inputs : p -> p list
val packed_is_real : p -> bool
val packed_id : p -> Id.t
val packed_output_idx : p -> int option
val get_attr_bool : 'a t -> string -> bool option
val get_attr_string : 'a t -> string -> string option
val get_attr_int_list : 'a t -> string -> int list option
val get_shape : 'a t -> Dim.t list option
val id : 'a t -> Id.t
val extract : p -> 'a Type.t -> 'a t option
module Weak_table : sig ... end
OCaml

Innovation. Community. Security.