package tensorflow

  1. Overview
  2. Docs
type t
type code =
  1. | TF_OK
  2. | TF_CANCELLED
  3. | TF_UNKNOWN
  4. | TF_INVALID_ARGUMENT
  5. | TF_DEADLINE_EXCEEDED
  6. | TF_NOT_FOUND
  7. | TF_ALREADY_EXISTS
  8. | TF_PERMISSION_DENIED
  9. | TF_UNAUTHENTICATED
  10. | TF_RESOURCE_EXHAUSTED
  11. | TF_FAILED_PRECONDITION
  12. | TF_ABORTED
  13. | TF_OUT_OF_RANGE
  14. | TF_UNIMPLEMENTED
  15. | TF_INTERNAL
  16. | TF_UNAVAILABLE
  17. | TF_DATA_LOSS
  18. | Unknown of int
val code : t -> code
val message : t -> string
type 'a result =
  1. | Ok of 'a
  2. | Error of t
val ok_exn : 'a result -> 'a
OCaml

Innovation. Community. Security.