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
d0575532
Commit
d0575532
authored
Nov 02, 2018
by
Paul
Browse files
Formatting
parent
3a3fbc84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
40 deletions
+10
-40
src/include/migraph/operators.hpp
src/include/migraph/operators.hpp
+10
-40
No files found.
src/include/migraph/operators.hpp
View file @
d0575532
...
@@ -296,10 +296,7 @@ struct transpose
...
@@ -296,10 +296,7 @@ struct transpose
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
contiguous
struct
contiguous
...
@@ -363,10 +360,7 @@ struct concat
...
@@ -363,10 +360,7 @@ struct concat
new_lens
[
axis
]
=
new_dim_axis
;
new_lens
[
axis
]
=
new_dim_axis
;
return
{
type
,
new_lens
};
return
{
type
,
new_lens
};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
slice
struct
slice
...
@@ -448,10 +442,7 @@ struct slice
...
@@ -448,10 +442,7 @@ struct slice
auto
offset
=
compute_offset
(
input
.
get_shape
())
*
output_shape
.
type_size
();
auto
offset
=
compute_offset
(
input
.
get_shape
())
*
output_shape
.
type_size
();
return
{
std
::
move
(
output_shape
),
[
=
]
{
return
input
.
data
()
+
offset
;
}};
return
{
std
::
move
(
output_shape
),
[
=
]
{
return
input
.
data
()
+
offset
;
}};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
squeeze
struct
squeeze
...
@@ -499,10 +490,7 @@ struct squeeze
...
@@ -499,10 +490,7 @@ struct squeeze
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
unsqueeze
struct
unsqueeze
...
@@ -541,10 +529,7 @@ struct unsqueeze
...
@@ -541,10 +529,7 @@ struct unsqueeze
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
reshape
struct
reshape
...
@@ -596,10 +581,7 @@ struct reshape
...
@@ -596,10 +581,7 @@ struct reshape
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
dot
struct
dot
...
@@ -737,10 +719,7 @@ struct flatten
...
@@ -737,10 +719,7 @@ struct flatten
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
front
().
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
broadcast
struct
broadcast
{
{
...
@@ -783,10 +762,7 @@ struct broadcast
...
@@ -783,10 +762,7 @@ struct broadcast
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
at
(
0
).
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
at
(
0
).
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
scalar
struct
scalar
...
@@ -808,10 +784,7 @@ struct scalar
...
@@ -808,10 +784,7 @@ struct scalar
{
{
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
at
(
0
).
data
)};
return
{
std
::
move
(
output_shape
),
std
::
move
(
args
.
at
(
0
).
data
)};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
binary
struct
binary
...
@@ -864,10 +837,7 @@ struct load
...
@@ -864,10 +837,7 @@ struct load
{
{
return
{
s
,
args
[
0
].
data
()
+
offset
};
return
{
s
,
args
[
0
].
data
()
+
offset
};
}
}
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
int
output_alias
(
const
std
::
vector
<
shape
>&
)
const
{
return
0
;
}
{
return
0
;
}
};
};
struct
outline
struct
outline
...
...
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