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
3911f85d
Commit
3911f85d
authored
4 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
Add some info logs about model format checking.
parent
f74e2942
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model.ml
+4
-0
4 additions, 0 deletions
model.ml
with
4 additions
and
0 deletions
model.ml
+
4
−
0
View file @
3911f85d
...
@@ -180,6 +180,7 @@ let retrieve_nnet_metadata filename =
...
@@ -180,6 +180,7 @@ let retrieve_nnet_metadata filename =
let
build
~
filename
=
let
build
~
filename
=
let
open
Result
in
let
open
Result
in
Logs
.
info
(
fun
m
->
m
"Checking format of model file `%s'."
filename
);
if
Sys
.
file_exists
filename
if
Sys
.
file_exists
filename
then
then
begin
begin
...
@@ -189,6 +190,9 @@ let build ~filename =
...
@@ -189,6 +190,9 @@ let build ~filename =
retrieve_nnet_metadata
filename
>>=
fun
nnet
->
retrieve_nnet_metadata
filename
>>=
fun
nnet
->
Ok
(
Nnet
nnet
)
Ok
(
Nnet
nnet
)
end
>>=
fun
format
->
end
>>=
fun
format
->
Logs
.
info
(
fun
m
->
m
"Model format recognized as `%s'."
(
match
format
with
Onnx
->
"ONNX"
|
Nnet
_
->
"NNet"
));
Ok
{
format
;
filename
}
Ok
{
format
;
filename
}
else
else
Error
(
Format
.
sprintf
"No such file `%s'."
filename
)
Error
(
Format
.
sprintf
"No such file `%s'."
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