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
9b7c44ab
Commit
9b7c44ab
authored
Jun 06, 2019
by
Paul
Browse files
Formatting
parent
552ad02c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
src/tf/tf.cpp
src/tf/tf.cpp
+15
-13
No files found.
src/tf/tf.cpp
View file @
9b7c44ab
...
@@ -204,19 +204,21 @@ struct tf_parser
...
@@ -204,19 +204,21 @@ struct tf_parser
template
<
class
T
>
template
<
class
T
>
void
add_binary_op
(
std
::
string
name
,
T
x
)
void
add_binary_op
(
std
::
string
name
,
T
x
)
{
{
add_op
(
name
,
[
this
,
x
](
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
add_op
(
name
,
if
(
args
.
size
()
!=
2
)
[
this
,
x
](
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
MIGRAPHX_THROW
(
"binary operators should have 2 operands"
);
if
(
args
.
size
()
!=
2
)
// TODO
MIGRAPHX_THROW
(
"binary operators should have 2 operands"
);
// if(contains(attributes, "data_format"))
// TODO
// {
// if(contains(attributes, "data_format"))
// if(is_nhwc)
// {
// {
// if(is_nhwc)
// l0 = prog.add_instruction(op::transpose{{0, 3, 1, 2}}, args[1]);
// {
// }
// l0 = prog.add_instruction(op::transpose{{0, 3, 1, 2}}, args[1]);
// }
// }
return
add_broadcastable_binary_op
(
args
[
0
],
args
[
1
],
x
);
// }
},
false
);
return
add_broadcastable_binary_op
(
args
[
0
],
args
[
1
],
x
);
},
false
);
}
}
template
<
class
T
>
template
<
class
T
>
...
...
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