Porting GA for all the operations
This commit is contained in:
@@ -48,6 +48,6 @@ from genetic import GeneticOperators
|
||||
#~ sys.stdout.flush()
|
||||
#~
|
||||
|
||||
def genetic(statement, context, TemplateType, build_template, parameter_names, compute_perf, perf_metric, out):
|
||||
GA = GeneticOperators(context.devices[0], statement, parameter_names, TemplateType, build_template, out)
|
||||
def genetic(statement, device, TemplateType, build_template, compute_perf, perf_metric, out):
|
||||
GA = GeneticOperators(device, statement, TemplateType, build_template, out)
|
||||
return GA.optimize(maxtime='2m30s', maxgen=1000, compute_perf=compute_perf, perf_metric=perf_metric)
|
||||
|
Reference in New Issue
Block a user