Skip to content

Commit

Permalink
Edit code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RattataKing committed Aug 23, 2024
1 parent 3931a99 commit 3b92d26
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions sharktank/sharktank/tools/tuner/candidate_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
# Given an input dispatch, this code modifies the hyperparameters
# in the code and runs it.

"""
Generate candidates by tweaking op configuration for tuning.
It can be invoked in two ways:
1. From another python script, import and call `tune()`
2. Run this script directly from the command
Usage: ./candidate_gen.py 121.mlir -o "tuning/candidates" -l 1024 --lhs-dims=mk --rhs-dims=nk --tile-dims=mnk
"""

import argparse
import logging
import math
Expand All @@ -23,9 +34,6 @@
from iree.compiler import ir
from iree.compiler.dialects import _linalg_ops_gen, _util_ops_gen

"""
Usage: ./candidate_gen.py 121.mlir -o "tuning/candidates" -l 1024 --lhs-dims=mk --rhs-dims=nk --tile-dims=mnk
"""

tune_logger = logging.getLogger("tune")

Expand Down

0 comments on commit 3b92d26

Please sign in to comment.