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
e578777f
Unverified
Commit
e578777f
authored
Feb 06, 2020
by
Tianqi Chen
Committed by
GitHub
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tol to resolve flaky case (#4836)
parent
75e9f5dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
topi/tests/python/test_topi_pooling.py
+2
-2
No files found.
topi/tests/python/test_topi_pooling.py
View file @
e578777f
...
...
@@ -80,7 +80,7 @@ def verify_pool(n, ic, ih, kh, sh, padding, pool_type, ceil_mode, count_include_
b
=
tvm
.
nd
.
array
(
np
.
zeros
(
get_const_tuple
(
B
.
shape
),
dtype
=
dtype
),
ctx
)
f
=
tvm
.
build
(
s
,
[
A
,
B
],
device
)
f
(
a
,
b
)
tvm
.
testing
.
assert_allclose
(
b
.
asnumpy
(),
b_np
,
rtol
=
1e-5
)
tvm
.
testing
.
assert_allclose
(
b
.
asnumpy
(),
b_np
,
rtol
=
2e-5
,
atol
=
1e-5
)
for
device
in
get_all_backend
():
check_device
(
device
)
...
...
@@ -180,7 +180,7 @@ def test_pool_grad():
def
verify_global_pool
(
n
,
c
,
h
,
w
,
pool_type
,
layout
=
'NCHW'
):
assert
layout
in
[
"NCHW"
,
"NHWC"
]
assert
layout
in
[
"NCHW"
,
"NHWC"
]
A
=
tvm
.
placeholder
((
n
,
c
,
h
,
w
),
name
=
'A'
)
B
=
topi
.
nn
.
global_pool
(
A
,
pool_type
=
pool_type
,
layout
=
layout
)
B
=
topi
.
nn
.
relu
(
B
)
...
...
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