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
a2a2b924
Commit
a2a2b924
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[language] Use common function for building float64 type symbol.
parent
e4fd53c3
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
src/language.ml
+4
-7
4 additions, 7 deletions
src/language.ml
with
4 additions
and
7 deletions
src/language.ml
+
4
−
7
View file @
a2a2b924
...
...
@@ -160,14 +160,14 @@ let register_ovo_support () =
let
vectors
=
Term
.
Hls
.
create
10
let
vector_el
t_ty
env
=
let
float64_
t_ty
env
=
let
th
=
Env
.
read_theory
env
[
"ieee_float"
]
"Float64"
in
Ty
.
ty_app
(
Theory
.
ns_find_ts
th
.
th_export
[
"t"
])
[]
let
create_vector
=
Env
.
Wenv
.
memoize
13
(
fun
env
->
let
h
=
Hashtbl
.
create
(
module
Int
)
in
let
ty_elt
=
vector_el
t_ty
env
in
let
ty_elt
=
float64_
t_ty
env
in
let
ty
=
let
th
=
Env
.
read_theory
env
[
"interpretation"
]
"Vector"
in
Ty
.
ty_app
(
Theory
.
ns_find_ts
th
.
th_export
[
"vector"
])
[
ty_elt
]
...
...
@@ -207,10 +207,7 @@ let fresh_nn_ls env name =
let
create_nn_nnet
=
Env
.
Wenv
.
memoize
13
(
fun
env
->
let
h
=
Hashtbl
.
create
(
module
String
)
in
let
ty_elt
=
let
th
=
Env
.
read_theory
env
[
"ieee_float"
]
"Float64"
in
Ty
.
ty_app
(
Theory
.
ns_find_ts
th
.
th_export
[
"t"
])
[]
in
let
ty_elt
=
float64_t_ty
env
in
Hashtbl
.
findi_or_add
h
~
default
:
(
fun
filename
->
let
ls
=
fresh_nn_ls
env
"nnet_nn"
in
let
nn
=
...
...
@@ -232,7 +229,7 @@ let create_nn_nnet =
let
create_nn_onnx
=
Env
.
Wenv
.
memoize
13
(
fun
env
->
let
h
=
Hashtbl
.
create
(
module
String
)
in
let
ty_elt
=
vector_el
t_ty
env
in
let
ty_elt
=
float64_
t_ty
env
in
Hashtbl
.
findi_or_add
h
~
default
:
(
fun
filename
->
let
ls
=
fresh_nn_ls
env
"onnx_nn"
in
let
onnx
=
...
...
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