Skip to content

Commit

Permalink
Update generator.py
Browse files Browse the repository at this point in the history
stop generating analytical conv kernels to reduce kernel number
  • Loading branch information
hwu36 authored May 9, 2022
1 parent 6023038 commit 1604eba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/library/scripts/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,9 @@ def CreateConv2dOperator(manifest, layout, tile_descriptions, data_type, alignme
# one exceptional case

# iterator algorithm (analytic and optimized)
iterator_algorithms = [IteratorAlgorithm.Analytic, IteratorAlgorithm.Optimized]

#iterator_algorithms = [IteratorAlgorithm.Analytic, IteratorAlgorithm.Optimized]
iterator_algorithms = [IteratorAlgorithm.Optimized]

# by default, only generate the largest tile size, largest alignment, and optimized iterator
if manifest.kernel_filter == '':
tile_descriptions = [tile_descriptions[0],]
Expand Down Expand Up @@ -526,7 +527,8 @@ def CreateConv3dOperator(manifest, layout, tile_descriptions, data_type, alignme
alignment_c = min(8, alignment)

# iterator algorithm (analytic and optimized)
iterator_algorithms = [IteratorAlgorithm.Analytic, IteratorAlgorithm.Optimized]
#iterator_algorithms = [IteratorAlgorithm.Analytic, IteratorAlgorithm.Optimized]
iterator_algorithms = [IteratorAlgorithm.Optimized]

# by default, only generate the largest tile size and optimized iterators
if manifest.kernel_filter == '':
Expand Down

0 comments on commit 1604eba

Please sign in to comment.