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
98c99805
Commit
98c99805
authored
Sep 05, 2019
by
kice
Committed by
Tianqi Chen
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix int32 range overflow by using int64 (#3870)
parent
ca352770
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/tvm/autotvm/task/space.py
+3
-2
No files found.
python/tvm/autotvm/task/space.py
View file @
98c99805
...
...
@@ -204,8 +204,9 @@ class SplitSpace(TransformSpace):
def
_generate_space
(
self
,
now
,
tmp_stack
):
"""Generate space by DFS"""
if
now
==
self
.
num_outputs
-
1
:
if
self
.
product
%
np
.
prod
(
tmp_stack
)
==
0
:
first
=
int
(
self
.
product
//
int
(
np
.
prod
(
tmp_stack
)))
size
=
np
.
prod
(
tmp_stack
,
dtype
=
np
.
int64
)
if
self
.
product
%
size
==
0
:
first
=
int
(
self
.
product
//
int
(
size
))
self
.
entities
.
append
(
SplitEntity
([
first
]
+
tmp_stack
[::
-
1
]))
else
:
for
factor
in
self
.
factors
[
now
]:
...
...
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