Skip to content

Commit

Permalink
fix gpu test
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Aug 3, 2020
1 parent 17cd25c commit 710ef76
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/python/unittest/test_auto_scheduler_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,13 @@ def test_gpu_feature():
with tempfile.NamedTemporaryFile(mode='w') as f:
f.write(json_records)
f.flush()
inputs, results = auto_scheduler.LogReader(f.name).read_lines()
inputs, results = auto_scheduler.RecordReader(f.name).read_lines()

inp = inputs[0]
dag = auto_scheduler.workload_key_to_dag(inp.task.workload_key)
task = auto_scheduler.SearchTask(dag, inp.task.workload_key, inp.task.target, None, auto_scheduler.HardwareParams(100000, 16, 64, 4, 64))
dag = auto_scheduler.ComputeDAG(inp.task.workload_key)
task = auto_scheduler.SearchTask(dag, inp.task.workload_key, inp.task.target, None, auto_scheduler.HardwareParams(100000, 16, 64))

state = auto_scheduler.serialization.get_states_from_measure_inputs(inputs, task)[0]
state = dag.infer_bound_from_state(state)
state = dag.infer_bound_from_state(inputs[0].state)
fea = auto_scheduler.feature.get_per_store_features_from_states([state], task)[0]
names = auto_scheduler.feature.get_per_store_feature_names()

Expand Down

0 comments on commit 710ef76

Please sign in to comment.