def get_experiment_object(prms, cPrms):
    caffeExp = mpu.CaffeExperiment(prms['expName'],
                                   cPrms['expStr'],
                                   prms['paths']['expDir'],
                                   prms['paths']['snapDir'],
                                   deviceId=cPrms['deviceId'])
    return caffeExp
Beispiel #2
0
def get_experiment_object(prms, cPrms):
    #Legacy support
    if prms['paths'].has_key('exp'):
        expDir = prms.paths.exp.dr
    else:
        expDir = prms['paths']['expDir']
    caffeExp = mpu.CaffeExperiment(prms['expName'],
                                   cPrms['expStr'],
                                   expDir,
                                   prms.paths.exp.snapshot.dr,
                                   deviceId=cPrms['deviceId'])
    return caffeExp