Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
27
Issues
27
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
aml
Commits
ee44a594
Commit
ee44a594
authored
Sep 05, 2019
by
Brice Videau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed parameter inversion.
parent
12c248af
Pipeline
#8421
failed with stages
in 5 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/layout/dense.c
src/layout/dense.c
+2
-2
src/layout/layout.c
src/layout/layout.c
+5
-5
No files found.
src/layout/dense.c
View file @
ee44a594
...
...
@@ -334,8 +334,8 @@ int aml_layout_column_reshape(const struct aml_layout_data *data,
int
aml_layout_column_slice
(
const
struct
aml_layout_data
*
data
,
struct
aml_layout
**
output
,
const
size_t
*
dims
,
const
size_t
*
offsets
,
const
size_t
*
dims
,
const
size_t
*
strides
)
{
struct
aml_layout
*
layout
;
...
...
@@ -465,8 +465,8 @@ int aml_layout_row_reshape(const struct aml_layout_data *data,
int
aml_layout_row_slice
(
const
struct
aml_layout_data
*
data
,
struct
aml_layout
**
output
,
const
size_t
*
dims
,
const
size_t
*
offsets
,
const
size_t
*
dims
,
const
size_t
*
strides
)
{
struct
aml_layout
*
layout
;
...
...
src/layout/layout.c
View file @
ee44a594
...
...
@@ -173,8 +173,8 @@ static int
aml_check_layout_slice
(
const
struct
aml_layout
*
layout
,
int
(
*
get_dims
)(
const
struct
aml_layout_data
*
,
size_t
*
),
const
size_t
*
dims
,
const
size_t
*
offsets
,
const
size_t
*
dims
,
const
size_t
*
strides
)
{
assert
(
layout
->
ops
->
ndims
!=
NULL
&&
...
...
@@ -201,8 +201,8 @@ aml_check_layout_slice(const struct aml_layout *layout,
int
aml_layout_slice
(
const
struct
aml_layout
*
layout
,
struct
aml_layout
**
reshaped_layout
,
const
size_t
*
dims
,
const
size_t
*
offsets
,
const
size_t
*
dims
,
const
size_t
*
strides
)
{
assert
(
layout
!=
NULL
&&
...
...
@@ -231,14 +231,14 @@ int aml_layout_slice(const struct aml_layout *layout,
assert
(
aml_check_layout_slice
(
layout
,
layout
->
ops
->
dims
,
dims
,
_offsets
,
dims
,
_strides
)
==
AML_SUCCESS
);
err
=
layout
->
ops
->
slice
(
layout
->
data
,
&
result
,
dims
,
_offsets
,
dims
,
_strides
);
if
(
err
==
AML_SUCCESS
)
*
reshaped_layout
=
result
;
...
...
@@ -271,7 +271,7 @@ int aml_layout_slice_native(const struct aml_layout *layout,
strides
)
==
AML_SUCCESS
);
err
=
layout
->
ops
->
slice_native
(
layout
->
data
,
&
result
,
dims
,
offset
s
,
strides
);
&
result
,
offsets
,
dim
s
,
strides
);
if
(
err
==
AML_SUCCESS
)
*
reshaped_layout
=
result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment