Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_onnx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Eclipse Projects
aidge
aidge_onnx
Merge requests
!69
feat/operator_squeeze_operator_unsqueeze
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat/operator_squeeze_operator_unsqueeze
feat/operator_squeeze_operator_unsqueeze
into
dev
Overview
0
Commits
2
Pipelines
3
Changes
5
Merged
Grégoire Kubler
requested to merge
feat/operator_squeeze_operator_unsqueeze
into
dev
7 months ago
Overview
0
Commits
2
Pipelines
3
Changes
5
Expand
Context
see issue :
aidge_core#65 (closed)
Edited
7 months ago
by
Grégoire Kubler
0
0
Merge request reports
Compare
dev
version 2
173b4fe2
7 months ago
version 1
173b4fe2
7 months ago
dev (base)
and
latest version
latest version
2f443a73
2 commits,
7 months ago
version 2
173b4fe2
4 commits,
7 months ago
version 1
173b4fe2
11 commits,
7 months ago
5 files
+
225
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
aidge_onnx/node_export/aidge_converters/squeeze.py
0 → 100644
+
40
−
0
Options
"""
Copyright (c) 2024 CEA-List
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
SPDX-License-Identifier: EPL-2.0
"""
import
aidge_core
import
onnx
from
onnx
import
helper
from
aidge_onnx.node_export
import
auto_register_export
from
typing
import
List
@auto_register_export
(
"
Squeeze
"
)
def
export_squeeze
(
aidge_node
:
aidge_core
.
Node
,
node_inputs_name
,
node_outputs_name
,
opset
:
int
=
None
,
verbose
:
bool
=
False
)
->
List
[
helper
.
NodeProto
]:
aidge_operator
=
aidge_node
.
get_operator
()
onnx_node
=
helper
.
make_node
(
name
=
aidge_node
.
name
(),
op_type
=
"
squeeze
"
,
inputs
=
node_inputs_name
,
outputs
=
node_outputs_name
,
)
if
opset
is
not
None
and
opset
<
13
:
onnx_node
.
attribute
.
append
(
helper
.
make_attribute
(
"
axes
"
,
aidge_node
.
get_operator
().
axes
()
))
return
[
onnx_node
]
Loading