mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
fix KOPT
This commit is contained in:
@@ -17,6 +17,7 @@ intervention_cache = dbm.open('/tmp/kopt.db', 'c')
|
||||
|
||||
Interventions = Enum("Interventions", ["SWAP", "UPCAST", "SHIFT", "REDUCE"])
|
||||
def get_interventions(k):
|
||||
k.process()
|
||||
p1, p2, p3, p4, p5 = [], [], [], [], []
|
||||
p1 = [(Interventions.SWAP, x) for x in itertools.combinations(range(k.first_reduce), 2)]
|
||||
p2 = [(Interventions.SWAP, x) for x in itertools.combinations(range(k.first_reduce, k.shape_len), 2)]
|
||||
|
||||
Reference in New Issue
Block a user