d89e07b275d181346de71a2f1a6cd77b5ba42628,pyprob/util.py,,,#,82
Before Change
ret.append("Running on : CPU")
return "\n".join(ret)
logger = Logger("{0}/{1}".format(".", "pyprob-log" + get_time_stamp()))
def set_cuda(cuda, device=0):
global cuda_enabled
global cuda_device
After Change
except:
return False
logger = Logger()
def get_time_stamp():
return datetime.datetime.fromtimestamp(time.time()).strftime("-%Y%m%d-%H%M%S")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pyprob/pyprob
Commit Name: d89e07b275d181346de71a2f1a6cd77b5ba42628
Time: 2017-10-20
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/util.py
Class Name:
Method Name:
Project Name: mariogeiger/se3cnn
Commit Name: 9e59ba9b9f9e1f292df5dd1ebd6dc55ec66d33b0
Time: 2018-03-02
Author: wouterboomsma@gmail.com
File Name: arch/cath.py
Class Name:
Method Name: main
Project Name: Cadene/bootstrap.pytorch
Commit Name: 97d7fe68af9f69eac7fad77c7bf0d447f1abbb82
Time: 2018-07-16
Author: rcadene@gnode-au11-01.cm.cluster
File Name: bootstrap/run.py
Class Name:
Method Name: run