Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
9e9070b6
"src/targets/gpu/quant_convolution.cpp" did not exist on "6df031632cebed9e8453574d989530ed7013a762"
Commit
9e9070b6
authored
Feb 25, 2019
by
Shucai Xiao
Browse files
clang format
parent
60fb49dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/include/migraphx/operators.hpp
src/include/migraphx/operators.hpp
+3
-4
No files found.
src/include/migraphx/operators.hpp
View file @
9e9070b6
...
@@ -774,16 +774,15 @@ struct gather
...
@@ -774,16 +774,15 @@ struct gather
return
{
type
,
lens
};
return
{
type
,
lens
};
}
}
template
<
typename
V
,
typename
T
>
template
<
typename
V
,
typename
T
>
T
compute_data_index
(
const
V
&
indices
,
const
int
axis_index
,
const
T
&
out_idx
)
const
T
compute_data_index
(
const
V
&
indices
,
const
int
axis_index
,
const
T
&
out_idx
)
const
{
{
auto
data_idx
=
out_idx
;
auto
data_idx
=
out_idx
;
std
::
size_t
index
{};
std
::
size_t
index
{};
if
(
!
indices
.
get_shape
().
scalar
())
if
(
!
indices
.
get_shape
().
scalar
())
{
{
auto
start_it
=
data_idx
.
begin
()
+
axis_index
;
auto
start_it
=
data_idx
.
begin
()
+
axis_index
;
auto
end_it
=
auto
end_it
=
data_idx
.
begin
()
+
axis_index
+
indices
.
get_shape
().
lens
().
size
();
data_idx
.
begin
()
+
axis_index
+
indices
.
get_shape
().
lens
().
size
();
std
::
vector
<
std
::
size_t
>
ind_idx
(
start_it
,
end_it
);
std
::
vector
<
std
::
size_t
>
ind_idx
(
start_it
,
end_it
);
data_idx
.
erase
(
start_it
,
end_it
);
data_idx
.
erase
(
start_it
,
end_it
);
index
=
indices
(
ind_idx
.
begin
(),
ind_idx
.
end
());
index
=
indices
(
ind_idx
.
begin
(),
ind_idx
.
end
());
...
...
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