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
1a5d2770
Commit
1a5d2770
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[verification] Prefer using the ls name associated to NIER because unique.
parent
7cc8d403
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/verification.ml
+3
-6
3 additions, 6 deletions
src/verification.ml
tests/nier_to_onnx.t
+1
-1
1 addition, 1 deletion
tests/nier_to_onnx.t
with
4 additions
and
7 deletions
src/verification.ml
+
3
−
6
View file @
1a5d2770
...
...
@@ -93,18 +93,15 @@ let create_env loadpath =
let
write_nier_as_onnx
onnx_out_dir
=
Language
.
iter_nn
(
fun
ls
nn
->
match
nn
.
nn_nier
with
|
Some
g
->
(
|
Some
nn_nier
->
(
try
if
not
(
Stdlib
.
Sys
.
file_exists
onnx_out_dir
)
then
Stdlib
.
Sys
.
mkdir
onnx_out_dir
0o755
;
let
filename
=
Stdlib
.
Filename
.(
basename
nn
.
nn_filename
|>
remove_extension
)
in
let
filename
=
Fmt
.
str
"%s%s%s.nier.onnx"
onnx_out_dir
Stdlib
.
Filename
.
dir_sep
filename
ls
.
ls_name
.
id_string
in
Onnx
.
write
g
filename
;
Onnx
.
write
nn_nier
filename
;
Logs
.
debug
~
src
:
Logging
.
src_nier
(
fun
m
->
m
"@[Wrote NIER as ONNX in file '%s'@]"
filename
)
with
Sys_error
msg
->
...
...
This diff is collapsed.
Click to expand it.
tests/nier_to_onnx.t
+
1
−
1
View file @
1a5d2770
...
...
@@ -21,7 +21,7 @@ Test verify
>
(
0.5
:
t
)
.<
(
nn@@i
)[
0
]
.<
(
0.5
:
t
)
>
end
>
EOF
[
DEBUG
]{
NIER
}
Wrote
NIER
as
ONNX
in
file
'
out/
TestNetworkONNX
.nier.onnx
'
[
DEBUG
]{
NIER
}
Wrote
NIER
as
ONNX
in
file
'
out/
onnx_nn
.nier.onnx
'
Goal
G:
Unknown
()
Data
should
be
0.135
...
...
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