Skip to content
Snippets Groups Projects
Commit 73f663dc authored by Julien Girard-Satabin's avatar Julien Girard-Satabin Committed by Michele Alberti
Browse files

deps fixes

parent 0df58cca
No related branches found
No related tags found
No related merge requests found
...@@ -4,14 +4,13 @@ version: "0.1" ...@@ -4,14 +4,13 @@ version: "0.1"
synopsis: "Framework for neural network verification" synopsis: "Framework for neural network verification"
depends: [ depends: [
"ocaml" {>= "4.10"} "ocaml" {>= "4.10"}
"dune" {>= "2.9" & >= "2.9.0"} "dune" {>= "2.9" & >= "2.9.1"}
"dune-site" {>= "2.9.0"} "dune-site" {>= "2.9.0"}
"why3"
"piqi" {>= "0.7.6"} "piqi" {>= "0.7.6"}
"piqilib" {>= "0.6.14"} "piqilib" {>= "0.6.14"}
"zarith" {>= "1.7"} "zarith" {>= "1.7"}
"ocplib-endian" {>= "1.0"} "ocplib-endian" {>= "1.0"}
"dune" {>= "2.7" & >= "2.7.1"} "dune" {>= "2.7.1"}
"base" {>= "v0.14.0"} "base" {>= "v0.14.0"}
"stdio" {>= "v0.14.0"} "stdio" {>= "v0.14.0"}
"cmdliner" {>= "1.0.4"} "cmdliner" {>= "1.0.4"}
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
(synopsis "Framework for neural network verification") (synopsis "Framework for neural network verification")
(depends (depends
(ocaml (>= 4.10)) (ocaml (>= 4.10))
(dune (>= 2.9.0)) (dune (>= 2.9.1))
(dune-site (>= 2.9.0)) (dune-site (>= 2.9.0))
(piqi (>= 0.7.6)) (piqi (>= 0.7.6))
(piqilib (>= 0.6.14)) (piqilib (>= 0.6.14))
...@@ -44,7 +44,17 @@ ...@@ -44,7 +44,17 @@
(synopsis "NNet parser") (synopsis "NNet parser")
(depends (depends
(ocaml (>= 4.10)) (ocaml (>= 4.10))
(dune (>= 2.7.1)) (dune (>= 2.9.1))
(base (>= v0.14.0))
)
)
(package
(name onnx)
(synopsis "ONNX parser")
(depends
(ocaml (>= 4.10))
(dune (>= 2.9.1))
(base (>= v0.14.0)) (base (>= v0.14.0))
) )
) )
...@@ -16,9 +16,6 @@ type t = Opiqi.Model_proto.t ...@@ -16,9 +16,6 @@ type t = Opiqi.Model_proto.t
(* ONNX format handling. *) (* ONNX format handling. *)
let onnx_format_error s =
Error (Format.sprintf "ONNX format error: %s condition not satisfied." s)
let parse_in_channel in_channel = let parse_in_channel in_channel =
let open Result in let open Result in
try try
......
...@@ -4,21 +4,7 @@ ...@@ -4,21 +4,7 @@
(* *) (* *)
(**************************************************************************) (**************************************************************************)
type t = private { type t = Onnx_piqi.Model_proto.t
n_layers : int; (** Number of layers. *)
n_inputs : int; (** Number of inputs. *)
n_outputs : int; (** Number of outputs. *)
max_layer_size : int; (** Maximum layer size. *)
layer_sizes : int list; (** Size of each layer. *)
min_input_values : float list; (** Minimum values of inputs. *)
max_input_values : float list; (** Maximum values of inputs. *)
mean_values : float list * float;
(** Mean values of inputs and one value for all outputs. *)
range_values : float list * float;
(** Range values of inputs and one value for all outputs. *)
weights_biases : float list list; (** All weights and biases of NNet model. *)
}
(** NNet model metadata. *)
val parse : string -> (t, string) Result.t val parse : string -> (t, string) Result.t
(** Parse an NNet file. *) (** Parse an ONNX file. *)
...@@ -2,9 +2,17 @@ ...@@ -2,9 +2,17 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.1" version: "0.1"
synopsis: "NNet parser" synopsis: "NNet parser"
maintainer: ["Michele Alberti" "François Bobot" "Julien Girard-Satabin"]
authors: [
"Michele Alberti"
"François Bobot"
"Julien Girard-Satabin"
"Zakaria Chihani"
]
bug-reports: "julien.girard2@cea.fr"
depends: [ depends: [
"ocaml" {>= "4.10"} "ocaml" {>= "4.10"}
"dune" {>= "2.9" & >= "2.7.1"} "dune" {>= "2.9" & >= "2.9.1"}
"base" {>= "v0.14.0"} "base" {>= "v0.14.0"}
"odoc" {with-doc} "odoc" {with-doc}
] ]
......
...@@ -2,14 +2,22 @@ ...@@ -2,14 +2,22 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.1" version: "0.1"
synopsis: "ONNX parser" synopsis: "ONNX parser"
maintainer: ["Michele Alberti" "François Bobot" "Julien Girard-Satabin"]
authors: [
"Michele Alberti"
"François Bobot"
"Julien Girard-Satabin"
"Zakaria Chihani"
]
bug-reports: "julien.girard2@cea.fr"
depends: [ depends: [
"ocaml" {>= "4.10"} "ocaml" {>= "4.10"}
"dune" {>= "2.9" & >= "2.7.1"} "dune" {>= "2.9" & >= "2.9.1"}
"base" {>= "v0.14.0"} "base" {>= "v0.14.0"}
"odoc" {with-doc} "odoc" {with-doc}
] ]
build: [ build: [
["dune" "subst" "--root" "."] {dev} ["dune" "subst"] {dev}
[ [
"dune" "dune"
"build" "build"
...@@ -17,8 +25,7 @@ build: [ ...@@ -17,8 +25,7 @@ build: [
name name
"-j" "-j"
jobs jobs
"--promote-install-files" "--promote-install-files=false"
"false"
"@install" "@install"
"@runtest" {with-test} "@runtest" {with-test}
"@doc" {with-doc} "@doc" {with-doc}
......
...@@ -12,10 +12,4 @@ ...@@ -12,10 +12,4 @@
(libraries menhirLib yojson cmdliner logs logs.cli logs.fmt fmt.tty base unix str ppx_deriving_yojson.runtime) (libraries menhirLib yojson cmdliner logs logs.cli logs.fmt fmt.tty base unix str ppx_deriving_yojson.runtime)
(preprocess (pps ppx_deriving_yojson ppx_deriving.show ppx_deriving.ord ppx_deriving.eq)) (preprocess (pps ppx_deriving_yojson ppx_deriving.show ppx_deriving.ord ppx_deriving.eq))
(package caisar) (package caisar)
(libraries menhirLib yojson cmdliner logs logs.cli
ocplib-endian logs.fmt fmt.tty base unix str
ppx_deriving_yojson.runtime piqirun.pb zarith
stdio)
(preprocess (pps ppx_deriving_yojson ppx_deriving.show ppx_deriving.ord ppx_deriving.eq))
(package caisar)
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment