Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
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_core
Commits
0ac21cbb
Commit
0ac21cbb
authored
8 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
fix typo for GridSample
parent
fb061c8f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!212
Version 0.3.0
,
!181
Feat 145 grid sample
Pipeline
#53027
canceled
8 months ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/operator/GridSample.hpp
+2
-2
2 additions, 2 deletions
include/aidge/operator/GridSample.hpp
python_binding/operator/pybind_GridSample.cpp
+1
-1
1 addition, 1 deletion
python_binding/operator/pybind_GridSample.cpp
with
3 additions
and
3 deletions
include/aidge/operator/GridSample.hpp
+
2
−
2
View file @
0ac21cbb
...
@@ -34,7 +34,7 @@ public:
...
@@ -34,7 +34,7 @@ public:
static
const
std
::
string
Type
;
static
const
std
::
string
Type
;
enum
class
Mode
{
Linear
,
Nearest
,
Cubic
};
enum
class
Mode
{
Linear
,
Nearest
,
Cubic
};
enum
class
PaddingMode
{
Zeros
,
Border
,
Refle
x
ion
};
enum
class
PaddingMode
{
Zeros
,
Border
,
Refle
ct
ion
};
private
:
private
:
using
Attributes_
=
StaticAttributes
<
GridSampleAttr
,
Mode
,
PaddingMode
,
bool
>
;
using
Attributes_
=
StaticAttributes
<
GridSampleAttr
,
Mode
,
PaddingMode
,
bool
>
;
...
@@ -62,7 +62,7 @@ public:
...
@@ -62,7 +62,7 @@ public:
inline
std
::
shared_ptr
<
Attributes
>
attributes
()
const
override
{
return
mAttributes
;
}
inline
std
::
shared_ptr
<
Attributes
>
attributes
()
const
override
{
return
mAttributes
;
}
inline
Mode
mode
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
Mode
>();
}
inline
Mode
mode
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
Mode
>();
}
inline
PaddingMode
paddingMode
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
PaddingMode
>();
}
inline
PaddingMode
paddingMode
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
PaddingMode
>();
}
inline
bool
align
B
or
d
ers
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
AlignCorners
>();
}
inline
bool
align
C
or
n
ers
()
const
{
return
mAttributes
->
template
getAttr
<
GridSampleAttr
::
AlignCorners
>();
}
static
const
std
::
vector
<
std
::
string
>
getInputsName
()
{
static
const
std
::
vector
<
std
::
string
>
getInputsName
()
{
return
{
"data_input"
,
"grid_field"
};
return
{
"data_input"
,
"grid_field"
};
...
...
This diff is collapsed.
Click to expand it.
python_binding/operator/pybind_GridSample.cpp
+
1
−
1
View file @
0ac21cbb
...
@@ -36,7 +36,7 @@ static typename Aidge::GridSample_Op::PaddingMode stringToPaddingMode(const std:
...
@@ -36,7 +36,7 @@ static typename Aidge::GridSample_Op::PaddingMode stringToPaddingMode(const std:
static
std
::
unordered_map
<
std
::
string
,
typename
Aidge
::
GridSample_Op
::
PaddingMode
>
map
=
{
static
std
::
unordered_map
<
std
::
string
,
typename
Aidge
::
GridSample_Op
::
PaddingMode
>
map
=
{
{
"zeros"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Zeros
},
{
"zeros"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Zeros
},
{
"border"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Border
},
{
"border"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Border
},
{
"refle
x
ion"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Refle
x
ion
}
{
"refle
ct
ion"
,
Aidge
::
GridSample_Op
::
PaddingMode
::
Refle
ct
ion
}
};
};
return
map
[
mode
];
return
map
[
mode
];
}
}
...
...
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