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
a1079453
Commit
a1079453
authored
2 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
Warn about the unavailability of nier due to errors.
parent
498610f2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/onnx/onnx.ml
+1
-1
1 addition, 1 deletion
lib/onnx/onnx.ml
src/language.ml
+8
-1
8 additions, 1 deletion
src/language.ml
with
9 additions
and
2 deletions
lib/onnx/onnx.ml
+
1
−
1
View file @
a1079453
...
@@ -119,7 +119,7 @@ let produce_cfg (g : Oproto.Onnx.GraphProto.t) =
...
@@ -119,7 +119,7 @@ let produce_cfg (g : Oproto.Onnx.GraphProto.t) =
|
"MaxPool"
->
NCFG
.
Node
.
MaxPool
|
"MaxPool"
->
NCFG
.
Node
.
MaxPool
|
"Conv"
->
NCFG
.
Node
.
Conv
|
"Conv"
->
NCFG
.
Node
.
Conv
|
"Identity"
->
NCFG
.
Node
.
Identity
|
"Identity"
->
NCFG
.
Node
.
Identity
|
_
->
raise
(
ParseError
(
"Unsupported ONNX operator
:
"
^
o
)))
|
_
->
raise
(
ParseError
(
"Unsupported ONNX operator "
^
o
)))
in
in
List
.
fold
~
f
:
(
fun
acc
n
->
get_node_operator_cfg
n
::
acc
)
~
init
:
[]
ns
List
.
fold
~
f
:
(
fun
acc
n
->
get_node_operator_cfg
n
::
acc
)
~
init
:
[]
ns
in
in
...
...
This diff is collapsed.
Click to expand it.
src/language.ml
+
8
−
1
View file @
a1079453
...
@@ -95,7 +95,14 @@ let onnx_parser env _ filename _ =
...
@@ -95,7 +95,14 @@ let onnx_parser env _ filename _ =
match
model
with
match
model
with
|
Error
s
->
Loc
.
errorm
"%s"
s
|
Error
s
->
Loc
.
errorm
"%s"
s
|
Ok
{
n_inputs
;
n_outputs
;
nier
}
->
|
Ok
{
n_inputs
;
n_outputs
;
nier
}
->
let
nier
=
Result
.
ok
nier
(* TODO: Warn about parsing errors? *)
in
let
nier
=
match
nier
with
|
Error
msg
->
Logs
.
warn
(
fun
m
->
m
"Cannot build network intermediate representation:@ %s"
msg
);
None
|
Ok
nier
->
Some
nier
in
register_nn_as_tuple
n_inputs
n_outputs
filename
nier
env
register_nn_as_tuple
n_inputs
n_outputs
filename
nier
env
let
ovo_parser
env
_
filename
_
=
let
ovo_parser
env
_
filename
_
=
...
...
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