Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu_ll
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
Lucas Lopez
aidge_backend_cpu_ll
Commits
cc842df7
Commit
cc842df7
authored
6 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
[fix] bad dimension computation in ConvDepthWise
parent
bf0cff39
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
include/aidge/backend/cpu/operator/ConvDepthWiseImpl_kernels.hpp
+6
-6
6 additions, 6 deletions
.../aidge/backend/cpu/operator/ConvDepthWiseImpl_kernels.hpp
with
6 additions
and
6 deletions
include/aidge/backend/cpu/operator/ConvDepthWiseImpl_kernels.hpp
+
6
−
6
View file @
cc842df7
...
@@ -53,10 +53,10 @@ void ConvDepthWiseImpl1D_cpu_forward_kernel(const std::array<DimSize_t, 1>& stri
...
@@ -53,10 +53,10 @@ void ConvDepthWiseImpl1D_cpu_forward_kernel(const std::array<DimSize_t, 1>& stri
// output H size
// output H size
const
DimSize_t
dilated_kernel_x
=
dilationDims
[
0
]
*
(
kernelDims
[
0
]
-
1
)
+
1
;
const
std
::
size_t
oxSize
=
const
std
::
size_t
oxSize
=
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
2
]
-
kernelDims
[
0
]
+
strideDims
[
0
])
/
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
2
]
-
dilated_kernel_x
+
strideDims
[
0
])
/
static_cast
<
float
>
(
strideDims
[
0
])));
static_cast
<
float
>
(
strideDims
[
0
])));
const
DimSize_t
dilated_kernel_x
=
dilationDims
[
0
]
*
(
kernelDims
[
0
]
-
1
)
+
1
;
// TODO: kernel computation
// TODO: kernel computation
...
@@ -133,15 +133,15 @@ void ConvDepthWiseImpl2D_cpu_forward_kernel(const std::array<DimSize_t, 2>& stri
...
@@ -133,15 +133,15 @@ void ConvDepthWiseImpl2D_cpu_forward_kernel(const std::array<DimSize_t, 2>& stri
// output H size
// output H size
const
DimSize_t
dilated_kernel_x
=
dilationDims
[
0
]
*
(
kernelDims
[
0
]
-
1
)
+
1
;
const
std
::
size_t
oxSize
=
const
std
::
size_t
oxSize
=
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
2
]
-
kernelDims
[
0
]
+
strideDims
[
0
])
/
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
2
]
-
dilated_kernel_x
+
strideDims
[
0
])
/
static_cast
<
float
>
(
strideDims
[
0
])));
static_cast
<
float
>
(
strideDims
[
0
])));
const
DimSize_t
dilated_kernel_x
=
dilationDims
[
0
]
*
(
kernelDims
[
0
]
-
1
)
+
1
;
// output W size
// output W size
const
DimSize_t
dilated_kernel_y
=
dilationDims
[
1
]
*
(
kernelDims
[
1
]
-
1
)
+
1
;
const
std
::
size_t
oySize
=
const
std
::
size_t
oySize
=
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
3
]
-
kernelDims
[
1
]
+
strideDims
[
1
])
/
static_cast
<
std
::
size_t
>
(
std
::
floor
(
static_cast
<
float
>
(
inputDims
[
3
]
-
dilated_kernel_y
+
strideDims
[
1
])
/
static_cast
<
float
>
(
strideDims
[
1
])));
static_cast
<
float
>
(
strideDims
[
1
])));
const
DimSize_t
dilated_kernel_y
=
dilationDims
[
1
]
*
(
kernelDims
[
1
]
-
1
)
+
1
;
// TODO: kernel computation
// TODO: kernel computation
// output (batch, outCh, Xout, Yout)
// output (batch, outCh, Xout, Yout)
...
...
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