Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
75ca6251
Commit
75ca6251
authored
3 years ago
by
Julien Girard-Satabin
Browse files
Options
Downloads
Patches
Plain Diff
Added automated interface generation rule
parent
891e1cd1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
lib/onnx/dune
+14
-4
14 additions, 4 deletions
lib/onnx/dune
lib/onnx/generate_onnx_interface.sh
+7
-0
7 additions, 0 deletions
lib/onnx/generate_onnx_interface.sh
with
22 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
0
View file @
75ca6251
...
...
@@ -12,6 +12,7 @@ tests:
-
if [ ! -d _opam ]; then echo "no local switch in the CI cache, we setup a new switch"; opam switch create --yes --no-install . ocaml-base-compiler.4.11.1; fi
-
eval $(opam env)
-
sudo apt-get update
-
sudo apt install -y protobuf-compiler
-
opam repository add remote https://opam.ocaml.org
-
opam depext --yes ocplib-endian base fmt alt-ergo.2.4.0
-
opam install . --deps-only --with-test --yes
...
...
This diff is collapsed.
Click to expand it.
lib/onnx/dune
+
14
−
4
View file @
75ca6251
(library
(name onnx)
(public_name onnx)
(libraries base csv piqirun.pb)
(synopsis "ONNX parser"))
(name onnx)
(public_name onnx)
(libraries base csv piqirun.pb)
(synopsis "ONNX parser"))
(rule
(targets onnx_piqi.ml onnx_piqi.mli)
(action
(run ./generate_onnx_interface.sh)
)
(deps
onnx.proto
generate_onnx_interface.sh)
(mode
promote))
This diff is collapsed.
Click to expand it.
lib/onnx/generate_onnx_interface.sh
0 → 100755
+
7
−
0
View file @
75ca6251
#!/bin/sh
piqi of-proto onnx.proto
sed
-ie
's/-START-VERSION/START-VERSION/'
onnx.proto.piqi
piqic-ocaml onnx.proto.piqi
sed
-ie
's/external/externall/g'
onnx_piqi.ml
ocamlfind ocamlc
-package
piqirun.pb
-i
onnx_piqi.ml
>
onnx_piqi.mli
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment