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
5a0c8ca7
Commit
5a0c8ca7
authored
Apr 18, 2019
by
Shucai Xiao
Browse files
correct a typo
parent
cea3aa4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/include/migraphx/op/convert.hpp
src/include/migraphx/op/convert.hpp
+3
-3
No files found.
src/include/migraphx/op/convert.hpp
View file @
5a0c8ca7
...
@@ -19,19 +19,19 @@ namespace op {
...
@@ -19,19 +19,19 @@ namespace op {
struct
convert
struct
convert
{
{
shape
::
type_t
targe_type
=
shape
::
half_type
;
shape
::
type_t
targe
t
_type
=
shape
::
half_type
;
template
<
class
Self
,
class
F
>
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
static
auto
reflect
(
Self
&
self
,
F
f
)
{
{
return
pack
(
f
(
self
.
targe_type
,
"target_type"
));
return
pack
(
f
(
self
.
targe
t
_type
,
"target_type"
));
}
}
std
::
string
name
()
const
{
return
"convert"
;
}
std
::
string
name
()
const
{
return
"convert"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
{
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
return
{
targe_type
,
inputs
.
front
().
lens
(),
inputs
.
front
().
strides
()};
return
{
targe
t
_type
,
inputs
.
front
().
lens
(),
inputs
.
front
().
strides
()};
}
}
argument
compute
(
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
...
...
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