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
bba1580b
Commit
bba1580b
authored
Jul 17, 2019
by
Shucai Xiao
Browse files
clang format
parent
c5353ce2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/tf/tf.cpp
src/tf/tf.cpp
+3
-2
test/tf/tf_test.cpp
test/tf/tf_test.cpp
+1
-1
No files found.
src/tf/tf.cpp
View file @
bba1580b
...
...
@@ -703,8 +703,9 @@ struct tf_parser
}
}
instruction_ref
parse_softmax
(
const
std
::
string
&
,
const
attribute_map
&
attributes
,
std
::
vector
<
instruction_ref
>
args
)
instruction_ref
parse_softmax
(
const
std
::
string
&
,
const
attribute_map
&
attributes
,
std
::
vector
<
instruction_ref
>
args
)
{
int
axis
=
1
;
if
(
contains
(
attributes
,
"axis"
))
...
...
test/tf/tf_test.cpp
View file @
bba1580b
...
...
@@ -354,7 +354,7 @@ TEST_CASE(reshape_test)
TEST_CASE
(
softmax_test
)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
,
3
}});
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
,
3
}});
p
.
add_instruction
(
migraphx
::
op
::
softmax
{
1
},
l0
);
auto
prog
=
optimize_tf
(
"softmax_test.pb"
,
false
);
...
...
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