Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_export_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Axel Farrugia
aidge_export_cpp
Commits
10371533
Commit
10371533
authored
1 year ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
Adapt export to new scheduler export signature.
parent
c72abf5b
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
aidge_export_cpp/export.py
+7
-11
7 additions, 11 deletions
aidge_export_cpp/export.py
with
7 additions
and
11 deletions
aidge_export_cpp/export.py
+
7
−
11
View file @
10371533
import
re
import
os
from
pathlib
import
Path
import
shutil
import
numpy
as
np
from
typing
import
List
,
Union
from
jinja2
import
Environment
,
FileSystemLoader
import
aidge_core
from
aidge_core.export_utils.data_conversion
import
aidge2c
from
aidge_core.export_utils.code_generation
import
*
from
aidge_core.mem_info
import
compute_default_mem_info
from
aidge_export_cpp.utils
import
(
ROOT
,
OPERATORS_REGISTRY
,
supported_operators
)
from
aidge_export_cpp.utils
import
ROOT
from
aidge_export_cpp.utils.converter
import
numpy_dtype2ctype
import
aidge_export_cpp.operators
from
aidge_export_cpp
import
ExportLibCpp
from
aidge_export_cpp.utils.generation
import
*
# from aidge_export_cpp.memory import *
...
...
@@ -39,10 +33,12 @@ def generate_input_file(export_folder:str,
def
export
(
export_folder_name
,
graphview
,
scheduler
,
mem_wrapping
=
False
):
es
=
aidge_core
.
export_utils
.
ExportScheduler
(
scheduler
)
es
.
export
(
export_folder_name
,
ExportLibCpp
,
memory_manager
=
compute_default_mem_info
)
aidge_core
.
export_utils
.
scheduler_export
(
scheduler
,
export_folder_name
,
ExportLibCpp
,
memory_manager
=
compute_default_mem_info
)
# export_folder = Path().absolute() / export_folder_name
...
...
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