Пример #1
0
 def _setCoreFramework(self, val):
   coreConf.set( val )
Пример #2
0
 def __call__(self, parser, namespace, value, option_string=None):
   coreConf.set( value )
Пример #3
0
#/usr/bin/env python
from timeit import default_timer as timer
from RingerCore.Logger import Logger, LoggingLevel
from TuningTools.TuningJob import TuningJob
from TuningTools.PreProc import *
from TuningTools.TuningJob import fixPPCol
from TuningTools.coreDef import coreConf, TuningToolCores
from TuningTools.TuningJob import ReferenceBenchmark, ReferenceBenchmarkCollection, BatchSizeMethod
from RingerCore.Configure import Development
import logging
import argparse

start = timer()
Development.set(True)
coreConf.set(TuningToolCores.keras)
#coreConf.set(TuningToolCores.FastNet)

mainLogger = Logger.getModuleLogger("job")
parser = argparse.ArgumentParser(description='', add_help=False)
parser = argparse.ArgumentParser()

parser.add_argument('-d',
                    '--data',
                    action='store',
                    dest='data',
                    required=True,
                    help="The input tuning files.")

parser.add_argument('-g',
                    '--gpu',
                    action='store',