Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
cb16cd44
Commit
cb16cd44
authored
Apr 26, 2019
by
Siva
Committed by
Tianqi Chen
Apr 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEST][FLAKY] fix for #3099 (#3101)
parent
036294c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/python/frontend/tensorflow/test_forward.py
+5
-5
No files found.
tests/python/frontend/tensorflow/test_forward.py
View file @
cb16cd44
...
...
@@ -1429,16 +1429,16 @@ def test_forward_sign():
compare_tf_with_tvm
([
np_data
],
[
'in_data:0'
],
'sign:0'
)
def
test_forward_pow_exp
():
"""test Pow"""
np_in1
=
np
.
random
.
uniform
(
-
10
,
10
,
size
=
(
5
,
7
,
11
))
.
astype
(
np
.
float32
)
np_in2
=
np
.
random
.
uniform
(
-
10
,
10
,
size
=
(
5
,
7
,
11
))
.
astype
(
np
.
float32
)
"""test Pow
and Exp
"""
np_in1
=
np
.
random
.
uniform
(
-
2
,
2
,
size
=
(
5
,
7
,
11
))
.
astype
(
np
.
float32
)
np_in2
=
np
.
random
.
uniform
(
-
2
,
2
,
size
=
(
5
,
7
,
11
))
.
astype
(
np
.
float32
)
tf
.
reset_default_graph
()
in1
=
tf
.
placeholder
(
tf
.
float32
,
(
5
,
7
,
11
),
name
=
"in1"
)
in2
=
tf
.
placeholder
(
tf
.
float32
,
(
5
,
7
,
11
),
name
=
"in2"
)
out1
=
tf
.
pow
(
in1
,
in2
,
name
=
"pow"
)
out
=
tf
.
exp
(
out
1
,
name
=
'exp'
)
out
=
tf
.
exp
(
in
1
,
name
=
'exp'
)
compare_tf_with_tvm
([
np_in1
,
np_in2
],
[
'in1:0'
,
'in2:0'
],
'pow:0'
)
compare_tf_with_tvm
([
np_in1
,
np_in2
],
[
'in1:0'
,
'in2
:0'
],
'exp:0'
)
compare_tf_with_tvm
([
np_in1
],
[
'in1
:0'
],
'exp:0'
)
#######################################################################
# Mean
...
...
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